Skip to content
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

oras client and Go SDK fail when registry responds with chunked transfer encoding #374

Closed
AaronFriel opened this issue Dec 6, 2022 · 0 comments · Fixed by #370
Closed
Labels
bug Something isn't working

Comments

@AaronFriel
Copy link
Contributor

To reproduce, use the Zot registry and push a manifest of >= 2000 bytes, as shown below:

# start Zot in one shell
docker run -p 5000:5000 ghcr.io/project-zot/zot-linux-amd64:latest
# in another shell

# start in an empty temp dir
cd $(mktemp -d)

# create 20 test artifacts:
for f in $(seq 1 20); do echo "$f" > "artifact-${f}.txt"; done

# push those to a zot registry:
oras push localhost:5000/foo/bar:v1.0 artifact-*.txt

# fetch the manifest
oras manifest fetch localhost:5000/foo/bar:v1.0
# Error: GET "http://localhost:5000/v2/foo/bar/manifests/v5.21.1": unknown response Content-Length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants