microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.22k stars 518 forks source link

404 Not Found when getting the list of tags #4419

Open pbernery opened 2 days ago

pbernery commented 2 days ago

I've just installed the Docker extension and did the setup for connecting to the GitHub Registry. I have the list of packages, but when trying to get the list of tags, the extension displays a 404 error.

I created a Personal Access Token with repo + write:packages as requested. Did I miss something?

Image

bwateratmsft commented 2 days ago

Does this show for all images or just the one?

pbernery commented 2 days ago

It shows for all of them.

bwateratmsft commented 2 days ago

Does your organization require multi-factor authentication? I'm wondering if the PAT is not enough when MFA is required.

pbernery commented 1 day ago

My organisation does not, my personal account is setup for MFA though, and can also use a passkey (if this can have any influence).

However, I can list the account + packages of the organization, so it looks like it is working partially. And FYI, I did create a classic token, not a fine-grained one (those have no access on packages yet).

pbernery commented 1 day ago

Some internal tests of the API showed that lowercasing the URL works.

My GitHub project is called Platform, and the Docker Extension generates a call to ghcr.io/v2/<MyOrg>/Platform/<package>/tags/list. Calling ghcr.io/v2/<myorg>/platform/<package>/tags/list seems to work.

bwateratmsft commented 7 hours ago

That's a great find! We'll have to look at casting the URLs to request to lowercase.