Comments (3)
Seems like this might be related to the "Primordials" issue related to graceful-fs
and Node 12+. This issue might be related?
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.
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.
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)
- No folder structure inside Zip file HOT 1
- Use file ~/.aws/credentials to authenticate on S3 service
- Zip creation of large folder on S3 using aws-s3-zipper and Node js HOT 3
- Breaking Unexpectedly HOT 5
- Not an issue: Tumblr is using this in production HOT 1
- Breaking in AWS instance
- zipToS3File throws error when deleting temp file
- Is accessKeyId and secretAccessKey required to get zipper object
- Root folder possible?
- Authorisation mechanism not supported
- Hitting this error: (.d.ts) file containing `declare module 'aws-s3-zipper' ?
- Corrupted zip file result in zipToS3File
- should it get credentials from AWS.config?
- Does this stream to Fragments for download?
- zipToFileFragments: maxFileCount not produced results as expected?
- Recursive key doesn't works
- how to change it use at typescript?
- Fix endpoint & add s3PathStyle
- console full of debugging statements from aws s3 zipper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-s3-zipper.