-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot run with nodejs.12X environment #44
Comments
Have you tried creating logs and viewing how far it gets in AWS Cloud Watch? This will at least show you how far it gets before failing. Also, your configuration needs to be Lambda friendly. An example is where you are dumping temp files and such. There are a few restrictions you need to be mindful of. |
exports.handler = function(event, context,callback) {
} Request ID: Function Logs: this is all of the error message i got. |
Seems like this might be related to the "Primordials" issue related to I was able to get this working locally, by making a copy of your index.js and just using it directly with one small modification:
The @auth0/s3 fork is mentioned in the above issue and has the newer There is also a StackOverflow question related to this. |
we have a demo lambda which invoke the 'aws-s3-zipper' running against Nodejs6.10, and it's working.
Since the nodejs6.10 is end of life. After i export the demo lambda to another environment with Nodejs12.X or Nodejs10.0, both of them return below error.
return message:
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 05ebdd8f-3860-47e1-9ccb-c88e08b6bcf0 Error: Runtime exited with error: signal: aborted (core dumped)"
}
detail log:
START RequestId: 05ebdd8f-3860-47e1-9ccb-c88e08b6bcf0 Version: $LATEST
/var/lang/bin/node[8]: ../src/node_contextify.cc:649:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion `args[1]->IsString()' failed.
1: 0x55788121a0f3 node::Abort() [/var/lang/bin/node]
2: 0x55788121a18c [/var/lang/bin/node]
3: 0x55788120baf6 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfov8::Value const&) [/var/lang/bin/node]
4: 0x55788141cf9d [/var/lang/bin/node]
5: 0x55788141dd8c v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/var/lang/bin/node]
6: 0x557881c81619 [/var/lang/bin/node]
END RequestId: 05ebdd8f-3860-47e1-9ccb-c88e08b6bcf0
REPORT RequestId: 05ebdd8f-3860-47e1-9ccb-c88e08b6bcf0 Duration: 5073.67 ms Billed Duration: 5100 ms Memory Size: 128 MB Max Memory Used: 112 MB Init Duration: 120.55 ms
The text was updated successfully, but these errors were encountered: