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 extensions. XHR failed #43

Closed
jmorcate opened this issue Oct 8, 2022 · 4 comments
Closed

Error while fetching extensions. XHR failed #43

jmorcate opened this issue Oct 8, 2022 · 4 comments

Comments

@jmorcate
Copy link

jmorcate commented Oct 8, 2022

Hi,
I have tried to use vscgallery and, although I could download extensions and installers with vscsync, I don't get my RECOMENDED extension list populated. When I try to search for an extension, I get the following error:

Error while fetching extensions. XHR failed

I don't see any requests or error messages in the logs. I am using the provided certificates.

In fact, I don't know well what to expect. I am in an air-gapped network and I would like to have the same experience as I was connected to the internet.

@LOLINTERNETZ
Copy link
Owner

On your airgapped network, can you pop open a web browser and navigate to https://update.code.visualstudio.com/ without any connection errors or certificate warnings?

In the vscode output window, do you see any extension related problems?

image

Finally, check Help > Toggle Development Tools > Select Network Tab > Select Extensions in vscode, do you see any fetch errors. Should look like this if working successfully.

image

@GH0st3rs
Copy link

I got the same problem. I can open the url in my firefox without any warnings. But In vscode debug console I got an error:

net::ERR_CERT_AUTHORITY_INVALID

@tomer953
Copy link
Contributor

I got the same problem. I can open the url in my firefox without any warnings. But In vscode debug console I got an error:

net::ERR_CERT_AUTHORITY_INVALID

which os do you use?

@GH0st3rs
Copy link

which os do you use?

Never mind I found solution (11) https://askubuntu.com/questions/244582/add-certificate-authorities-system-wide-on-firefox
And just replaced libnssckbi.so to p11-kit-trust.so. After restart the vscode is became to see the systems certificates.
The problem been that Firefox used separated certificate storage than vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants