We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to copy a manifest from registry binducentralus.azurecr.io/samples/artifact:1.0. This manifest has a config whose size is 0.
binducentralus.azurecr.io/samples/artifact:1.0
{ "schemaVersion": 2, "config": { "mediaType": "application/vnd.unknown.config.v1+json", "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "size": 0 }, "layers": [ { "mediaType": "application/vnd.unknown.layer.v1+txt", "digest": "sha256:6291bbe45f529c52451285872d5fce81296aafac2190634d6f2e17c08c2e3dcb", "size": 44, "annotations": { "org.opencontainers.image.title": "artifact.txt" } } ] }
The following code failed as 400 bad request.
src, err := remote.NewRepository("binducentralus.azurecr.io/samples/artifact:1.0") dest := file.New("temp") desc, err := oras.Copy(ctx, src, src.Reference.Reference, dest, "")
The problem was the invalid range header value (bytes=0--1) in the download request due to
bytes=0--1
oras-go/registry/remote/repository.go
Line 447 in c34895e
The text was updated successfully, but these errors were encountered:
Please assign this issue to me, thanks
Sorry, something went wrong.
Resolved by #145
wangxiaoxuan273
No branches or pull requests
I tried to copy a manifest from registry
binducentralus.azurecr.io/samples/artifact:1.0
. This manifest has a config whose size is 0.The following code failed as 400 bad request.
The problem was the invalid range header value (
bytes=0--1
) in the download request due tooras-go/registry/remote/repository.go
Line 447 in c34895e
The text was updated successfully, but these errors were encountered: