Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while fetching extension. XHR failed. #142705

Closed
ajayglory5 opened this issue Feb 10, 2022 · 16 comments
Closed

Error while fetching extension. XHR failed. #142705

ajayglory5 opened this issue Feb 10, 2022 · 16 comments
Assignees
Labels
info-needed Issue requires more information from poster linux Issues with VS Code on Linux network Network related issues proxy Issues regarding network proxies

Comments

@ajayglory5
Copy link

ajayglory5 commented Feb 10, 2022

Does this issue occur when all extensions are disabled?: Unable to install even a single extension

  • VS Code Version: 1.63.2 (used code_1.63.2-1639562499_amd64.deb to install)
  • OS Version: Ubuntu 20.04.3 LTS

Steps to Reproduce:

  1. Freshly installed VS code in Ubuntu 20.04.3
  2. Open the tool and go to extension tab. Search for an extension to install, and the error is seen.
    Error
@ajayglory5
Copy link
Author

@sandy081 can you please support.

@sandy081
Copy link
Member

Can you please check the console and see what is the error?

  • Open Developer Tools using command F1: Toggle Developer Tools

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Feb 11, 2022
@linkrope
Copy link

ERR Error: XHR failed
  at XMLHttpRequest.E.onerror (workbench.desktop.main.js:83)

POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery net::ERR_NAME_NOT_RESOLVED

BTW: same issue for me

@ajayglory5
Copy link
Author

Can you please check the console and see what is the error?

  • Open Developer Tools using command F1: Toggle Developer Tools

default.exp-tas.com/vscode/ab:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED workbench.desktop.main.js:577 ERR [Extension Host] (node:131928) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use code --trace-deprecation ...to show where the warning was created) workbench.desktop.main.js:77 [Extension Host] (node:131928) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Usecode --trace-deprecation ... to show where the warning was created) I @ workbench.desktop.main.js:77 workbench.desktop.main.js:577 ERR net::ERR_PROXY_CONNECTION_FAILED: Error: net::ERR_PROXY_CONNECTION_FAILED at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:109:7068) at SimpleURLLoaderWrapper.emit (events.js:315:20) marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED workbench.desktop.main.js:577 ERR XHR failed: Error: XHR failed at XMLHttpRequest.C.onerror (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:85:27247) workbench.desktop.main.js:77 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1) I @ workbench.desktop.main.js:77 workbench.desktop.main.js:77 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1) I @ workbench.desktop.main.js:77 workbench.desktop.main.js:77 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1) I @ workbench.desktop.main.js:77 workbench.desktop.main.js:577 ERR Error: XHR failed at XMLHttpRequest.C.onerror (workbench.desktop.main.js:85) marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED vscodeexperiments.azureedge.net/experiments/vscode-experiments.json:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED workbench.desktop.main.js:577 ERR Error: XHR failed at XMLHttpRequest.C.onerror (workbench.desktop.main.js:85) marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED workbench.desktop.main.js:577 ERR Error: XHR failed at XMLHttpRequest.C.onerror (workbench.desktop.main.js:85) marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not parse content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/vs/base/worker/workerMain.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/vs/base/parts/sandbox/electron-browser/preload.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/bootstrap.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/vs/loader.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/bootstrap-window.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/vs/code/electron-browser/workbench/workbench.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/core/vs/workbench/workbench.desktop.main.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/tas-client-umd/lib/tas-client-umd.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/vscode-textmate/release/main.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/xterm/lib/xterm.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/xterm-addon-search/lib/xterm-addon-search.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/899d46d82c4c95423fb7e10e68eba52050e30ba3/node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js.map: Connection error: net::ERR_PROXY_CONNECTION_FAILED

@ajayglory5
Copy link
Author

Error_console
@sandy081

@sandy081 sandy081 assigned deepak1556 and chrmarti and unassigned sandy081 Feb 11, 2022
@sandy081 sandy081 removed the info-needed Issue requires more information from poster label Feb 11, 2022
@ajayglory5
Copy link
Author

@deepak1556 @chrmarti @sandy081 any updates? I have provided the needed logs already.

@chrmarti
Copy link
Contributor

Could you start VS Code with --log-net-log=netlog.json, retry the failing feature and then post the created netlog.json here?

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Feb 22, 2022
@deepak1556 deepak1556 added linux Issues with VS Code on Linux network Network related issues proxy Issues regarding network proxies labels Feb 22, 2022
@linkrope
Copy link

That's the result for me (same issue, but Ubuntu 21.04 and VS Code updated to 1.64.2):
netlog.json.zip

@chrmarti
Copy link
Contributor

The DNS lookups fail. Can you access https://marketplace.visualstudio.com using Chrome or Chromium?

@linkrope
Copy link

Yes: with Chrome as well as with Firefox.

$ ping marketplace.visualstudio.com
PING marketplace.visualstudio.com(2620:1ec:a92::175 (2620:1ec:a92::175)) 56 data bytes
64 bytes from 2620:1ec:a92::175 (2620:1ec:a92::175): icmp_seq=1 ttl=53 time=24.4 ms
...

@linkrope
Copy link

linkrope commented Mar 4, 2022

Still an issue with 1.65.0

@chrmarti
Copy link
Contributor

chrmarti commented Mar 7, 2022

@deepak1556 Any idea what to look for here?

@linkrope
Copy link

That's bad: "needs-more-info" label has not been removed, although I provided all the information I was asked for.
The issue is not yet resolved. How can I reopen it? Report a new one?

@deepak1556 deepak1556 reopened this Mar 14, 2022
@deepak1556
Copy link
Contributor

@linkrope can you check if the issue repros with our latest insiders https://code.visualstudio.com/insiders/, if it does please attach netlog generated from this version. Thanks!

@linkrope
Copy link

OK: issue is avoided even with "Visual Studio Code" (no need for "Insiders") after I installed the .deb packages.
I uninstalled the snap package "code" via "Ubuntu Software" and reinstalled it, and I can confirm that I still get "XHR failed".

So: works for me after switching from snap to .deb. Thanks.

@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster linux Issues with VS Code on Linux network Network related issues proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

6 participants
@deepak1556 @linkrope @chrmarti @sandy081 @ajayglory5 and others