LOLINTERNETZ / vscodeoffline

Enables Visual Studio Code's extension gallery to be used in offline (air-gapped) environments. Or, run your own gallery!
https://hub.docker.com/u/lolinternet
MIT License
95 stars 28 forks source link

Error while fetching extensions. XHR failed #43

Closed jmorcate closed 1 year ago

jmorcate commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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