Skip to content

Getting ZlibError: zlib: unexpected end of file in cdk synth and cdk deploy for 305 chapter #1

Description

@jayeshgar

Describe the bug
I am getting the below error when I tried to execute the receipe from CloudShell. Previously it was working fine for me.

Traceback (most recent call last):
File "app.py", line 4, in
import aws_cdk as cdk
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/aws_cdk/init.py", line 952, in
from ._jsii import *
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/aws_cdk/_jsii/init.py", line 14, in
"aws-cdk-lib", "2.0.0-rc.7", name[0:-6], "aws-cdk-lib@2.0.0-rc.7.jsii.tgz"
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/jsii/_runtime.py", line 43, in load
_kernel.load(assembly.name, assembly.version, os.fspath(assembly_path))
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/jsii/_kernel/init.py", line 269, in load
self.provider.load(LoadRequest(name=name, version=version, tarball=tarball))
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 338, in load
return self._process.send(request, LoadResponse)
File "/home/cloudshell-user/Storage/305-Configuring-Application-Specific-Access-to-S3/cdk-AWS-Cookbook-305/.venv/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 326, in send
raise JSIIError(resp.error) from JavaScriptError(resp.stack)
jsii.errors.JSIIError: zlib: unexpected end of file

Subprocess exited with error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions