Skip to content

Fix: bad request will remove header and retry login#711

Merged
crosbymichael merged 1 commit intoapple:mainfrom
tico88612:fix/bad-request-remove-auth
Apr 29, 2026
Merged

Fix: bad request will remove header and retry login#711
crosbymichael merged 1 commit intoapple:mainfrom
tico88612:fix/bad-request-remove-auth

Conversation

@tico88612
Copy link
Copy Markdown
Contributor

@tico88612 tico88612 commented Apr 29, 2026

If you're requesting on /v2/ with basic auth, AWS ECR will return 400 Bad Request and won't provide www-authenticate information.

Retry the request after removing the Authorization header.

Continue PR #429

Fixed apple/container#847

If you're requesting on /v2/ with basic auth, AWS ECR will return 400 Bad Request and won't provide www-authenticate information.
Retry the request after removing the Authorization header.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
@tico88612
Copy link
Copy Markdown
Contributor Author

cc @crosbymichael

@crosbymichael
Copy link
Copy Markdown
Contributor

Thank you

@crosbymichael crosbymichael merged commit de075ff into apple:main Apr 29, 2026
5 checks passed
@tico88612 tico88612 deleted the fix/bad-request-remove-auth branch April 30, 2026 01:38
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.

[Bug]: registry login fails with AWS ECR

2 participants