Error when running commands using aws-cdk-lib 2.0.0-rc.29
See original GitHub issueGeneral Issue
jsii Error: ZlibError: zlib: incorrect data check
The Question
I’m using python and it was working fine a couple of weeks ago (with older rc). I’m using a local install of cdk.
When I try to run:
- npx cdk bootstrap
- npx cdk deploy
I get the following error:
ZlibError: zlib: incorrect data check
Things I’ve tried:
- Using an old project which previously worked
- Using a newly 'init’ed project
- Python versions 3.8 and 3.9
- Updating my local system packages (including python)
Any ideas?
CDK CLI Version
2.0.0-rc.29 (build 2445842)
Framework Version
No response
Node.js Version
v14.18.1
OS
MacOS
Language
Python
Language Version
3.9.9
Other information
jsii.errors.JavaScriptError:
ZlibError: zlib: incorrect data check
at Unzip.write (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:4518:36)
at UnpackSync.write (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:6063:46)
at Yallist.<anonymous> (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:4169:76)
at Yallist.forEach (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:7756:20)
at ReadStreamSync.emit (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:4169:55)
at ReadStreamSync.emit (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:1739:34)
at ReadStreamSync.write (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:4043:26)
at ReadStreamSync.[_handleChunk] (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:1715:41)
at ReadStreamSync.[_read] (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:1761:52)
at ReadStreamSync.emit (/private/var/folders/3m/dlw0dvwd4cb4bv6qhpwxrbmm0000gn/T/tmpr3flk5sd/lib/program.js:1730:67)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Troubleshooting common AWS CDK issues
When deploying my AWS CDK stack, I receive a NoSuchBucket error ... To run a locally installed AWS CDK Toolkit, use the command...
Read more >How to fix 'command not found' for aws-cdk after running the ...
I am trying to install the aws-cdk and in the terminal and I run the npm install -g aws-cdk . As stated here...
Read more >[technical preview] AWS Adapter - CDK for Terraform
The adapter will throw an error explaining that there is currently no mapping in place for a DynamoDB table resource.
Read more >Summary: AWS CDK v2 Developer Preview announcement
With the version: aws-cdk@2.0.0-rc.1 as release candidate like the beta version of the new AWS CDK v2. The End of dependency errors. Okay,...
Read more >AWS CDK v2 Tutorial – How to Create a Three-Tier Serverless ...
To get started, we can use the cdk command-line utility to scaffold an application ... BillingMode, Table } from 'aws-cdk-lib/aws-dynamodb'; ...
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
Installing node using nvm seems to have fixed the issue. I’m guessing some sort of installation/linking error.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.