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

imgpkg with flag --json swallows error #631

Open
kumaritanushree opened this issue Jan 30, 2024 · 0 comments
Open

imgpkg with flag --json swallows error #631

kumaritanushree opened this issue Jan 30, 2024 · 0 comments
Labels
bug This issue describes a defect or unexpected behavior carvel accepted This issue should be considered for future work and that the triage process has been completed

Comments

@kumaritanushree
Copy link
Contributor

What steps did you take:
Run $ imgpkg push -b index.docker.io/username/my-bundle:v1.0.0 -f config/ with wrong username and got error:

dir: .
dir: .imgpkg
file: .imgpkg/images.yml
file: config.yml

imgpkg: Error: Writing 'index.docker.io/username/my-bundle:v1.0.0':
  Writing image:
    HEAD https://index.docker.io/v2/username/my-bundle/blobs/sha256:b622a27ef5b9d02070c45ddbf7a94670f6b41aea673ad91ce7c7315108e9585f: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)

Executed same command with flag --json and this time it exited without printing any error message or any other log.

What happened:
When we run imgpkg command with flag --json it did not print error message in case of failure.

What did you expect:
When we run imgpkg command with flag --json it should print error message in case of failure.

Anything else you would like to add:
[Additional information that will assist in solving the issue.]

Environment:

  • imgpkg version (use imgpkg --version):
  • Docker registry used (e.g. Docker HUB):
  • OS (e.g. from /etc/os-release):

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@kumaritanushree kumaritanushree added bug This issue describes a defect or unexpected behavior carvel triage This issue has not yet been reviewed for validity labels Jan 30, 2024
@kumaritanushree kumaritanushree added carvel accepted This issue should be considered for future work and that the triage process has been completed and removed carvel triage This issue has not yet been reviewed for validity labels Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior carvel accepted This issue should be considered for future work and that the triage process has been completed
Projects
Status: No status
Development

No branches or pull requests

1 participant