`cdktf plan` throws axios maxBodyLength error
See original GitHub issueCommunity Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave “+1” or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
cdktf & Language Versions
- “@cdktf/provider-google”: “^0.5.128”,
- “cdktf”: “^0.8.5”,
- “cdktf-cli”: “^0.8.5”,
- “typescript”: “^4.5.4”
- “node”: “16.13.1”
Debug Output
Expected Behavior
- should generate plan
Actual Behavior
- throws error, looks like an axios maxBodyLength error
Steps to Reproduce
Not sure what in particular is causing this, this used to periodically happen when deploying changes and I cleared node_modules/.gen and seemed to be able to fix it, though not 100% sure that was actually what was fixing it. Now I can’t seem to get it to work, I’ve upgraded all my dependencies to their latest versions, including yarn.
Important Factoids
- using terraform cloud, the network call causing this error may be related to that
References
- this seems to be talking about the same error, though not terraform related. wondering if
maxBodyLength
needs to be increased on an internal cdktf axios call
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Error: Request body larger than maxBodyLength limit when ...
You are setting 'maxContentLength': Infinity, 'maxBodyLength': Infinity. In your data object. It should be inside the config object, ...
Read more >Workflow Payload Limit Exceeded error when uploading large ...
Giao Phan : Yeah, so I think what is happening is that the error the axios throws includes the original request with its...
Read more >terraform-cdk - bytemeta
Problem running cdktf-cli · `cdktf plan` throws axios maxBodyLength error · Make cdktf.log output file configurable via env or CLI flag.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DanielMSchmidt you’re right, but that method had a bug 😁 see #1694.
Here’s why: https://github.com/hashicorp/terraform-cdk/blob/dc752a93a3f7c264c00771b3668d89a882ebd70b/packages/cdktf/lib/manifest.ts#L49-L54 https://github.com/hashicorp/terraform-cdk/blob/dc752a93a3f7c264c00771b3668d89a882ebd70b/packages/cdktf/lib/manifest.ts#L29
Nevermind! This is something we should improve (e.g. explicitly ignoring the
.terraform
directory in there) 👍