docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 40 forks source link

Redirection to Docker Hub home page when linking or re-linking accounts: "Offer is not available" or "account not found" #2183

Closed rimelek closed 2 years ago

rimelek commented 2 years ago

Problem description

I went to "Linked accounts" on Docker Hub and tried to relink my GitHub account. It redirected me to the Docker Hub home page. I went back and tried to link my BitBucket account with same result. It redirected me to the home page.

Debug Information

How I tried to debug

Web Browser: Google Chrome Version 96.0.4664.110 (Official Build) (arm64) Operating system: MacOS Monterey

I opened the Developer Tools in Google Chrome and then went to the console tab and found this message:

https://hub.docker.com/api/billing/v4/accounts/***/offer

Note: Since I don't know what that was I replaced a hash (looked like md5 hash, 32 characters) with ***. I can share it if you say it is safe to share.

I clicked on the link in the console to go the network tab, then I clicked on "offer" to check the HTTP response. This is what I saw:

{
  "txnid":"XXXXXX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
  "message":"account not found",
  "errinfo":  {
    "api_call_docker_id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "api_call_name":"GetOffer",
    "api_call_start":"2021-12-17T21:21:19.887327663Z",
    "api_call_txnid":"XXXXXX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "docker_id":"***"
  }
}

"api_call_docker_id" looks like another md5 hash which is my "dockerUUID" based on the "Local Storage" in Google Chrome on Mac.. "docker_id" is the same md5 hash I had in the URL. This is why I replaced it with the same characters. My real docker username is "rimelek" and I have "Pro" subscription.

The HTTP response code is 404 Not Found.

Web Browser: Google Chrome Version 96.0.4664.110 (Official Build) (64-bit) Operating system: Windows 11

The debug process was the same. The difference is the HTTP response.

{
  "txnid":"XXXXXX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
  "message":"Offer is not available.",
  "errinfo":  {
    "api_call_docker_id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "api_call_name":"GetOffer",
    "api_call_start":"2021-12-17T21:40:37.920918361Z",
    "api_call_txnid":"XXXXXX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
  }
}

You can see that there is no docker_id field and the message is "Offer is not available." instead of "account not found" I realized I used a VPN on the Windows machine so I turned that off but got the same result.

Firefox 94.0.2, Firefox 95.0.1, Microsoft Edge 96.0.1054.57, Microsoft Edge 96.0.1054.62 on Windows 11 worked the same way as Google Chrome.

Then I tried on MacOS + Google Chrome again in an "incognito window" . I have got "Offer is not available." And finally I tried MacOS + Google Chrome in a "guest" profile. I have got "Offer is not available."

The reason of the difference seems to be some kind of cache, cookie or the content of the Local Storage because any attempt in a new environment gives me "Offer is not available". Signing out and signing in again does not change the result.

Of course the difference is not the main issue. The redirection is the same in each case.

URL: https://hub.docker.com/settings/linked-accounts

Public IP: 188.143.53.13 Hub Username: rimelek

Error messages (on screen or in browser console)

Why I think this is a new issue

Task List

mikeparker commented 2 years ago

This is a known issue we're solving this now. See https://status.docker.com/pages/533c6539221ae15e3f000031 for details

ingshtrom commented 2 years ago

This should now be resolved. Can you confirm @rimelek? Do note that we had to re-open that incident on our status page due to an issue with Bitbucket fetching of repositories, but setting up GitHub external repository sources still works.

rimelek commented 2 years ago

@ingshtrom Yes, I confirm, it works now. Thank you for notification!