Error while fetching extensions. Server returned 503
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: Mac Os
- Remote OS: Ubunut
- Remote Architecture: x64
code-server --version
: 4.3.0 09bc30027a7fbba170f907a527eaa9f7219fe739 with Code 1.65.2
Steps to Reproduce
- open code-server
- Search any extension
Expected
It should search the extension
Actual
But getting error Error while fetching extensions. Server returned 503
Logs
No response
Screenshot/Video

Does this issue happen in VS Code?
- I cannot reproduce this in VS Code.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
The issue is happening because the new code-server version sending requests to https://open-vsx.org/vscode/gallery/extensionquery
but the old version which is working fine is sending requests to https://extensions.coder.com/api/extensionquery
that’s why I am getting error.
ERROR CURL
curl 'https://open-vsx.org/vscode/gallery/extensionquery' \
-H 'Accept: application/json;api-version=3.0-preview.1' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{"criteria":[{"filterType":10,"value":"golan"},{"filterType":8,"value":"Microsoft.VisualStudio.Code"},{"filterType":12,"value":"4096"}],"pageNumber":1,"pageSize":50,"sortBy":0,"sortOrder":0}],"assetTypes":[],"flags":950}' \
--compressed
WORKING CURL
curl 'https://extensions.coder.com/api/extensionquery' \
-H 'accept: application/json;api-version=3.0-preview.1' \
-H 'content-type: application/json' \
--data-raw '{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"},{"filterType":10,"value":"gol"},{"filterType":12,"value":"4096"}],"pageNumber":1,"pageSize":50,"sortBy":0,"sortOrder":0}],"assetTypes":[],"flags":950}' \
--compressed
Issue Analytics
- State:
- Created a year ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Server returned 503 VsCode extension marketplace
Extension marketplace is returning this when trying to search for extension Error while fetching extensions. Server Returned 503
Read more >How to Fix the HTTP Error 503 Service Unavailable - Kinsta
The 503 (Service Unavailable) status code indicates that the server is currently unable to handle the request due to a temporary overload or ......
Read more >How to Fix Error While Fetching Extensions. XHR Failed in Vs ...
Link:- https://open-vsx.org/In This Video We Will See How to Fix Error While Fetching Extensions. XHR Failed in Vs Code or Microsoft Visual ...
Read more >Visual Studio Code error while fetching extensions. XHR Failed.
'XHR Failed' error when trying to install VS Code extension. ... Click 'Use the following DNS server addresses' and enter.
Read more >How to Fix 503 Service Unavailable Error: 7 Steps That Work
Another possible factor causing the 503 error is a DNS-related issue, such as unresolved IP addresses, unresponsive DNS servers, or a corrupted ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s happening now, again…
Yes,
https://open-vsx.org
was down today which caused the issue. The issue seems to be resolved now. So closing the ticket.