question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`cdktf plan` throws axios maxBodyLength error

See original GitHub issue

Community 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

gist

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ansgarmcommented, Apr 6, 2022

Nevermind! This is something we should improve (e.g. explicitly ignoring the .terraform directory in there) 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found