You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
time="2023-02-01T17:10:28+08:00" level=debug msg="Listing credentials"
time="2023-02-01T17:10:31+08:00" level=debug msg="Could not fetch credentials for cache prefix, disabling cache" error="operation error SSO: GetRoleCredentials, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , request send failed, Get \"https://portal.sso.us-west-2.amazonaws.com/federation/credentials?account_id=029672914754&role_name=LocalDevelopment\": dial tcp: lookup portal.sso.us-west-2.amazonaws.com on [::1]:53: read udp [::1]:59700->[::1]:53: read: connection refused"
Note
I suspect this happens for invalid requests (4xx) as well as network errors, but I have no proof of that at this time.
The text was updated successfully, but these errors were encountered:
gondalez
changed the title
Helper returns empty credential list on network error
Helper returns success code + empty credential list on network error
Feb 2, 2023
Problem
When a network request fails, the helper returns an empty result.
This causes docker in turn to fail with a
no basic auth credentials
error.Expected
Network error.
Helper returns a nonzero status code and a helpful error message to indicate to docker/user there was an error.
Actual
Network error.
Helper returns
0
(success) and empty result{}
.Repro Steps
Successful login (network enabled)
Status code is 0 as expected:
~/.ecr/log/ecr-login.log
Failed login (network disabled)
Turn off wifi and unplug network cable 😄
Status code expected to be nonzero but is zero:
~/.ecr/log/ecr-login.log
Note
I suspect this happens for invalid requests (4xx) as well as network errors, but I have no proof of that at this time.
The text was updated successfully, but these errors were encountered: