Giter Club home page Giter Club logo

Comments (3)

andersryanc avatar andersryanc commented on June 12, 2024 1

Seems like this might be related to the "Primordials" issue related to graceful-fs and Node 12+. This issue might be related?

andrewrk/node-s3-client#228

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:

// change `s3` to `@auth0/s3`
var s3 = require('@auth0/s3');

The @auth0/s3 fork is mentioned in the above issue and has the newer graceful-fs dependency.

There is also a StackOverflow question related to this.

from aws-s3-zipper.

DanielHindi avatar DanielHindi commented on June 12, 2024

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.

from aws-s3-zipper.

murphyzhang613 avatar murphyzhang613 commented on June 12, 2024

exports.handler = function(event, context,callback) {

console.log('start');
const S3Zipper = require('aws-s3-zipper');
console.log('end'); 

}
I tried the script as above, which still return the same error.
Response:
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 52197942-725f-41fa-9e62-84fb114798be Error: Runtime exited with error: signal: aborted (core dumped)"
}

Request ID:
"52197942-725f-41fa-9e62-84fb114798be"

Function Logs:
START RequestId: 52197942-725f-41fa-9e62-84fb114798be Version: $LATEST
2020-03-12T01:48:35.802Z 52197942-725f-41fa-9e62-84fb114798be INFO start
2020-03-12T01:48:40.580Z 52197942-725f-41fa-9e62-84fb114798be INFO ContextifyScript=function ContextifyScript() { [native code] }
/var/lang/bin/node[7]: ../src/node_contextify.cc:635:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion `args[1]->IsString()' failed.
1: 0x55e9a81291d3 node::Abort() [/var/lang/bin/node]
2: 0x55e9a81292cc [/var/lang/bin/node]
3: 0x55e9a81617ac node::contextify::ContextifyScript::New(v8::FunctionCallbackInfov8::Value const&) [/var/lang/bin/node]
4: 0x55e9a8419143 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [/var/lang/bin/node]
5: 0x26d43b5be1d
END RequestId: 52197942-725f-41fa-9e62-84fb114798be
REPORT RequestId: 52197942-725f-41fa-9e62-84fb114798be Duration: 5514.55 ms Billed Duration: 5600 ms Memory Size: 128 MB Max Memory Used: 119 MB Init Duration: 151.60 ms
RequestId: 52197942-725f-41fa-9e62-84fb114798be Error: Runtime exited with error: signal: aborted (core dumped)
Runtime.ExitError

this is all of the error message i got.
Thanks very much

from aws-s3-zipper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.