-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(lambda-nodejs): maximum call stack size exceeded or converting circular structure to JSON #11698
Conversation
… a VPC All the `FunctionOptions` were leaking into `core` where a cache key is calculated in asset staging. For a function in a VPC, those options have circular references making it impossible to calculate a cache key with the current implementation. Another PR is needed to make the cache key calculation in core more robust. BREAKING CHANGE: bundling customization options like `minify` or `sourcemap` are now gathered under a new `bundling` prop.
Will add a test for the VPC case |
@eladb this is ready for review and will fix the issue |
Nice finding. I'm actually hitting this case right now when passing a vpc to my lambda function. Is there any version where this is not happening ? |
The problem starts with 1.75.0 |
This actually also happens when I try to deploy a Lambda@Edge (so not only VPC) |
Thanks for the feedback, this PR will also fix this. |
I am getting the same issue when trying to add defined IAM Role to the NodeJS function, hopefully this is fixed here too but thought I would mention it |
Yes, it should be the case. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
All the
FunctionOptions
were leaking intocore
where a cache key iscalculated in asset staging. Some of those options have circular references
making it impossible to calculate a cache key with the current implementation.
Another PR is needed to make the cache key calculation in
core
morerobust.
Closes #11693
Closes #11726
Closes #11762
BREAKING CHANGE: bundling customization options like
minify
orsourceMap
are now gathered under a newbundling
prop.bundlingEnvironment
is nowbundling.environment
bundlingDockerImage
is nowbundling.dockerImage
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license