Skip to content

Distinguish image-not-found from authentication errors#216

Merged
jadolg merged 4 commits intomasterfrom
claude/fix-image-error-messages-xisHU
Apr 8, 2026
Merged

Distinguish image-not-found from authentication errors#216
jadolg merged 4 commits intomasterfrom
claude/fix-image-error-messages-xisHU

Conversation

@jadolg
Copy link
Copy Markdown
Owner

@jadolg jadolg commented Apr 8, 2026

When the registry returns HTTP 404 for a manifest request, return a
typed ErrImageNotFound instead of a generic message. The HTTP handlers
now detect this error via errors.As and respond with HTTP 404 and a
clear "image not found: " message rather than HTTP 500 with a
misleading "authentication failed" message.

For the case where the auth server itself rejects the token request,
the fetchToken error message now explicitly notes that the image may
not exist or may be private, not just that credentials are wrong.

https://claude.ai/code/session_01CCxZ3U3tT8jE5XFybD6Aup

claude and others added 4 commits April 8, 2026 16:27
When the registry returns HTTP 404 for a manifest request, return a
typed ErrImageNotFound instead of a generic message. The HTTP handlers
now detect this error via errors.As and respond with HTTP 404 and a
clear "image not found: <image>" message rather than HTTP 500 with a
misleading "authentication failed" message.

For the case where the auth server itself rejects the token request,
the fetchToken error message now explicitly notes that the image may
not exist or may be private, not just that credentials are wrong.

https://claude.ai/code/session_01CCxZ3U3tT8jE5XFybD6Aup
@jadolg jadolg merged commit 882b291 into master Apr 8, 2026
8 checks passed
@jadolg jadolg deleted the claude/fix-image-error-messages-xisHU branch April 8, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants