vscode: Can not update extensions due to "Error: Server returned 404" (rust-analyzer)
- VS Code Version: 1.68.0-insider
- OS Version: Windows 10 21H2
Steps to Reproduce:
- Have rust-analyzer 0.2.853 installed from the marketplace
- Observe that your extensions are out of date.
- Try to use the “Check for Extension Updates” option
- Receive notification alert “Error: Server returned 404”, no extensions receive updates.
Uninstalling rust-analyzer 0.2.853 resolved this for me.
Expectations:
- Notification Alert would have shown which extension it was. I only found out via the Developer Tools Console.
- Other extensions would have updated fine regardless of this error caused by one extension.
- It’s been failing to update extensions in the background for a while despite having “Keep extensions up to date checked”, a warning that this was failing would have been nice. (It also caused all extensions to appear up to date, when they in fact weren’t.)
Developer Tools Console output:
request.ts:46
GET https://rust-lang.gallerycdn.vsassets.io/extensions/rust-lang/rust-analyzer/0.2.853/1639376535349/Microsoft.VisualStudio.Code.Manifest 404
request.ts:46
GET https://rust-lang.gallerycdn.vsassets.io/extensions/rust-lang/rust-analyzer/0.2.853/1639376535349/Microsoft.VisualStudio.Code.Manifest 404
notificationsAlerts.ts:40 Error: Server returned 404
at C (request.ts:49:9)
at J.getManifestFromRawExtensionVersion (extensionGalleryService.ts:1023:16)
at async J.getEngine (extensionGalleryService.ts:1128:21)
at async J.isValidVersion (extensionGalleryService.ts:671:19)
at async J.toGalleryExtensionWithCriteria (extensionGalleryService.ts:868:8)
at async J.queryGalleryExtensions (extensionGalleryService.ts:809:22)
at async J.getExtensions (extensionGalleryService.ts:618:26)
at async Ms.checkForUpdates (extensionsWorkbenchService.ts:1076:30)
at async Object.run (extensions.contribution.ts:584:5)
at async k.runAction (actions.ts:190:3)
at async k.run (actions.ts:181:4)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 32
- Comments: 40 (21 by maintainers)
Links to this issue
Commits related to this issue
- Fix #149518 — committed to microsoft/vscode by sandy081 2 years ago
- Auto merge of #12359 - lnicola:universal-vsix-part-2, r=lnicola internal: Try to publish the universal VSIX before the other ones CC https://github.com/microsoft/vscode/issues/149518#issuecomment-11... — committed to rust-lang/rust-analyzer by bors 2 years ago
Hey @sandy081 is it possible to escalate this? It’s becoming a security issue. People suffering from this are not receiving any extension updates and are falling behind on extension security patches. Thanks!
There might be a temporary fix that someone on the marketplace side could do for rust-analyzer specifically, though fixing the root causes in vscode would be fantastic as well.
I have faced the same problem.
It seems that the change in the Marketplace identifier of rust-analyzer from
matklad.rust-analyzer
torust-lang.rust-analyzer
seems to have affected the problem. I solved the problem by uninstalling the old rust-analyzer and installing the newrust-lang.rust-analyzer
again.Yes - it fixes the update.
The extension was recently transferred to a new publisher ‘rust-lang’ and there is a step that got missed from the publisher end. I will reach out to the publisher and discuss on this.
Here are the issues I noticed:
Root cause is that Marketplace when requested for latest versions, is returning
0.2.853
version that is invalid/bogus - this version’s assets (manifest, vsix) are not found and it has no properties. It seems it was published with old publisher name.Irrespective of that, an error while updating one extension shall not prevent other extensions.
Version: 1.67.1 Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d Date: 2022-05-06T12:39:22.915Z Electron: 17.4.1 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 OS: Linux x64 5.17.7-zen1-1-zen
I got the same problem when use
rust-analyzer v0.3.1051
. I got this message:Command 'Extensions: Check for Extension Updates' resulted in an error (Server returned 404)
. After switch to Pre-Release versionrust-analyzer v0.3.1055
. No problem anymore.In my case, I can’t even install the extension. I’ve just setup a codespace but I receive a “Server returned 404” error when trying to install rust-analyzer.
Same problem with rust-analyzer. After uninstalling the extension I can update my others.
Pushed a fix to insiders to recover from it
Still had a similar issue, I upgraded to latest VS Code (1.68.1) and it works now.
Update: publishing went through!
The Marketplace still has a minor issue where it’s only showing the pre-release versions (because they’re higher than the stable ones), but that’s not a new problem.
Thanks everybody for tackling this weird issue.
Community please let us know if somebody can still reproduce this problem. Thanks!
Fix for this issue needed any universal version >
0.2.853
to be published and that seems to be happened.This seems to be a different unrelated issue which shall be looked at separately.
AFAIK neither of us has access, so that might be problematic.
And yeah, don’t worry, we’ve had some fun with platform-specific extensions before.
@jonasbb I assume the latest version for universal is not yet published to marketplace, the latest version for universal is still 0.2.853 on marketplace
Marketplace CDN is returning 404 for following request
https://rust-lang.gallerycdn.vsassets.io/extensions/rust-lang/rust-analyzer/0.2.853/1639376535349/Microsoft.VisualStudio.Code.Manifest
Marketplace is returning above URL indeed when querying for this extension
CC @prashantvc @SaiKanth007
@rlabrecque Apologies that I did not notice this. Will investigate soon. Are there any simple steps to reproduce?
Same problem here. Having rust-analyzer installed prevents any extension update.