You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weird error happens in AWS Lambda environment only. It works locally.
I am using solidity-code-metrics in my project. If I include the const surya = require('surya');, then the lambda fails with this uncaught exception. It isn’t even caught my try {} catch block. So this isn’t a normal crash
If I remove the surya import, then the the lambda manages to finish.
Weird error happens in AWS Lambda environment only. It works locally.
I am using solidity-code-metrics in my project. If I include the
const surya = require('surya');
, then the lambda fails with this uncaught exception. It isn’t even caught mytry {} catch
block. So this isn’t a normal crashIf I remove the surya import, then the the lambda manages to finish.
https://github.com/tonisives/solidity-metrics/blob/master/src/metrics/metrics.js#L17
Error with surya import enabled
Please note I have made some patches to get SCM working in Lambda. But this one seems to be a new one from changes from max 1 year ago.
I tried surya 0.4.6 and also an update to 0.4.11
The text was updated successfully, but these errors were encountered: