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
I tried to authenticate against Digital Ocean Container Registry using the spin registry login command and ran into the following error:
doUser="my-do-username"
doPAT="my-do-pat"
spin registry login registry.digitalocean.com -u $doUser -p $doPAT
Error: cannot log in to the registry
Caused by:
cannot authenticate as <my-do-username> to registry registry.digitalocean.com: unexpected HTTP status 400 Bad Request
Setting RUST_LOG=debug I get the following log messages:
2024-03-06T21:19:13.706127Z DEBUG reqwest::connect: starting new connection: https://registry.digitalocean.com/
2024-03-06T21:19:13.707241Z DEBUG hyper::client::connect::dns: resolving host="registry.digitalocean.com"
2024-03-06T21:19:13.840619Z DEBUG hyper::client::connect::http: connecting to 104.18.7.242:443
2024-03-06T21:19:13.856569Z DEBUG hyper::client::connect::http: connected to 104.18.7.242:443
2024-03-06T21:19:13.973357Z DEBUG hyper::proto::h1::io: flushed 126 bytes
2024-03-06T21:19:14.007371Z DEBUG hyper::proto::h1::io: parsed 12 headers
2024-03-06T21:19:14.007414Z DEBUG hyper::proto::h1::conn: incoming body is content-length (87 bytes)
2024-03-06T21:19:14.007520Z DEBUG hyper::proto::h1::conn: incoming body completed
2024-03-06T21:19:14.007591Z DEBUG hyper::client::pool: pooling idle connection for ("https", registry.digitalocean.com)
2024-03-06T21:19:14.009875Z DEBUG reqwest::connect: starting new connection: https://api.digitalocean.com/
2024-03-06T21:19:14.009982Z DEBUG hyper::client::connect::dns: resolving host="api.digitalocean.com"
2024-03-06T21:19:14.029661Z DEBUG hyper::client::connect::http: connecting to 104.18.154.42:443
2024-03-06T21:19:14.069639Z DEBUG hyper::client::connect::http: connected to 104.18.154.42:443
2024-03-06T21:19:14.349884Z DEBUG hyper::proto::h1::io: flushed 326 bytes
2024-03-06T21:19:14.526252Z DEBUG hyper::proto::h1::io: parsed 10 headers
2024-03-06T21:19:14.526312Z DEBUG hyper::proto::h1::conn: incoming body is empty
2024-03-06T21:19:14.526446Z DEBUG hyper::client::pool: pooling idle connection for ("https", api.digitalocean.com)
Error: cannot log in to the registry
Caused by:
cannot authenticate as <my-do-username> to registry registry.digitalocean.com: unexpected HTTP status 400 Bad Request
Credential Verification
I was able to login successfully by providing the same credentials to docker login.
I tried to authenticate against Digital Ocean Container Registry using the
spin registry login
command and ran into the following error:Setting
RUST_LOG=debug
I get the following log messages:Credential Verification
I was able to login successfully by providing the same credentials to
docker login
.Spin Information
The text was updated successfully, but these errors were encountered: