Skip to content
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

AWS lambda - Recursive process.nextTick detected. RangeError: Maximum call stack size exceeded #615

Closed
pablocaselas opened this issue May 21, 2015 · 3 comments

Comments

@pablocaselas
Copy link

Trying to use createFunction from AWS.Lambda({apiVersion: '2015-03-31'}) like this...

lambda.createFunction(params_create, function(err, data) {
                  if (err) console.log(err, err.stack); // an error occurred
                  else{
                        console.log("succesfully created function ",lambda_function.name);
                        console.log(data);  
                    }
                });

I get the following warnings that result in an abrupt error and the process finishes.

I am using node v10.0.32.

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(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

Trying to upload the same zip from a ec2 machine results in previous error but works okay from my local machine(tried same node version v10.0.32). Any idea on what could be causing it?? upload is much slower??

@AdityaManohar
Copy link
Contributor

@pablocaselas
This is a known issue with Node v0.10.x (see joyent/node/issues/#6065. This has also been discussed a couple of times on this repository as well (see #158).

We did investigate changing the highWaterMark setting of stream.Readable, but noticed a non-trivial memory performance regression (see #551).

Let me know if upgrading your Node runtime to v0.12.x fixes this issue.

Hope this helps!

@pablocaselas
Copy link
Author

Yes, it seems to be working fine. Thanks!

@lock
Copy link

lock bot commented Sep 30, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants