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
I get a spam (more than 200 lines at once) of the following:
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
.
.
.
.
RangeError: Maximum call stack size exceeded
Until the process dies.
When running with --throw-deprecation flag I get the following stack trace:
node.js:375
throw new Error(msg);
^
Error: (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
at maxTickWarn (node.js:375:15)
at process.nextTick (node.js:480:9)
at emitReadable (_stream_readable.js:400:13)
at readableAddChunk (_stream_readable.js:165:9)
at EncryptedStream.Readable.push (_stream_readable.js:127:10)
at EncryptedStream.read [as _read] (tls.js:510:10)
at EncryptedStream.Readable.read (_stream_readable.js:320:10)
at flow (_stream_readable.js:579:52)
at Socket.<anonymous> (_stream_readable.js:563:7)
at Socket.EventEmitter.emit (events.js:117:20)
This file size I uploaded is ~ 150Mb.
Node Version : v0.10.15
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./config.json');
var s3 = new AWS.S3();
var localFile = '/var/log/myLog.log';
fs.readFile(localFile, function(err, data) {
if (err) {
console.log('failed to read file before uploading to s3 due to %s', err);
return;
}
if (data.length > 0) {
console.log('uploading %s to s3', localFile);
s3.putObject({
Body: data,
Key: '/',
Bucket: 'myBucket'
}, function(err, data) {
if (err){
console.log(err);
}
if (!data){
console.log('data returned null');
}
}
);
}
});
The text was updated successfully, but these errors were encountered:
This is the same issue reported in #150 and #158. Unfortunately the SDK never actually calls process.nextTick in the portion of code you are using, so it would most likely be a third party issue with another library (possibly the async module if you are using it) or Node.js itself. I would recommend trying this with the latest stable release of Node.js v0.10.20.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
Sep 30, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This code fails to upload large files to S3.
I get a spam (more than 200 lines at once) of the following:
Until the process dies.
When running with --throw-deprecation flag I get the following stack trace:
This file size I uploaded is ~ 150Mb.
Node Version : v0.10.15
See attached code.
config.json:
The text was updated successfully, but these errors were encountered: