microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.04k stars 28.5k forks source link

"Server returned 404" when trying to install different versions of extensions in VS Code #99699

Closed luabud closed 4 years ago

luabud commented 4 years ago

Steps to Reproduce:

  1. Open the extensions view and install the Python extension (or the Docker extension)
  2. Click to install a different version of the extension
  3. See the "Server returned 404" notification prompt

Does this issue occur when all extensions are disabled?: No

The issue was originally filed here: https://github.com/Microsoft/vscode-python/issues/12217, but it can also be reproduced with the Docker extension.

image

Log (Window):

[2020-06-09 10:59:40.899] [renderer1] [error] Server returned 404: Error: Server returned 404
    at Object.t.asJson (file:///C:/Users/luabud/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1839:954)
    at file:///C:/Users/luabud/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2030:39
    at async Promise.all (index 13)
sandy081 commented 4 years ago

Which version are you trying to install?

sunbart commented 4 years ago

Same thing happens to me. (same Win & VSCode versions as luabud)

This doesn't happen while installing, but before - it happens when VSCode tries to get the list of available versions to show under the "Select Version to Install" popup. (At least that's what I assume is happening)

The action sequence is:

  1. Click on the Manage button of the extension in the Extensions list
  2. Select "Install Another Version..." from the menu
  3. The "Select Version to Install" prompt appears, with a loading indicator running at the bottom of it
  4. After a few seconds, the "Server returned 404" error notification appears and the "Select Version to Install" prompt disappears.
Rutikhal commented 4 years ago

The same for me. I had an issue today with Azure Functions local dev (python worker) in VSCode and I noticed that was update 8th of June of Python extension, to troubleshoot I wanted to install previous version of this extension but having error described here.

Rutikhal commented 4 years ago

my workaround to fix my issue https://github.com/Azure/azure-functions-python-worker/issues/481#issuecomment-641943047

mgabeler-lee-6rs commented 4 years ago

I'm seeing this error with vscode 1.45.1 and 1.46.0 (Linux Debian amd64) with all extensions.

Running under code --verbose, I get the attached log snippet (I trimmed everything before I hit the "install another version" and after it reported the "404" error. Spot checking the URLs it says it hits I'm not getting any 404s in my browser, so not sure where the error is coming from.

try-get-go-versions.log

rhymu8354 commented 4 years ago

I've started seeing this with vscode 1.45.1 on Windows, but only for one extension (CMake Tools) which I had to revert to an earlier version due to a breaking bug. Now I'm locked into the version I have, or to update to the latest which is broken for me.

luabud commented 4 years ago

Which version are you trying to install?

I don't get to select a version, just by clicking on "Install version..." it throws that error.

image

I tried it with previous versions of the Python extension just in case, but that didn't change. And again, that can be reproduced with other extensions e.g. Docker and CMake Tools as said here. It's not happening to all extensions for me, it's working with the C/C++ extension.

sandy081 commented 4 years ago

@fiveisprime Seems Marketplace is returning 404s for the valid URIs.

fiveisprime commented 4 years ago

The marketplace team has an idea of what's going on and they're looking into a fix.

mgabeler-lee-6rs commented 4 years ago

This is now working for me for some extensions, but not all. Not sure if this is a CDN issue or what?

darmawanaris commented 4 years ago

I got this problem too when i want to install another version of terraform extension.

VSCode version : 1.46.0 OS : 16.04 xenial

Seems the issue "Server returned 404" still happening..

bklynate commented 4 years ago

Currently experiencing this issue as well... with the Go language plugin

Screen Shot 2020-06-18 at 12 51 05 PM
thomasrobertz commented 4 years ago

Also happens for Nativescript 0.11.0

Chupaka commented 4 years ago

VSCode 1.46.1, still 404. @fiveisprime, any news from marketplace team?

fiveisprime commented 4 years ago

Reached out again this morning and I'll let you know what I hear back. Sorry for the issues. :(

Stropek commented 4 years ago

Having the same problem with Python extension :(

VS Code: 1.46.1

image

sandy081 commented 4 years ago

Added a fix in VS Code to ignore those versions which throw error (Eg: 404). So now you can see the list of versions even though some fail.

ps-apalon commented 4 years ago

@sandy081 do you have any ETA on when this will actually be "fixed" for everyone?

sandy081 commented 4 years ago

Next stable release is planned for Thursday next week - Please follow our end game schedule here - https://github.com/microsoft/vscode/issues/101289

aryan29 commented 4 years ago

Using vsocde-insiders 1.47.0 solved issue for me