microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.43k stars 29.34k forks source link

We cannot connect to the Extension Marketplace -- No Proxy #81115

Closed NeoGlitch closed 5 years ago

NeoGlitch commented 5 years ago

Issue Type: Bug

When entering even a single letter in "Search Extension in..." get message "We cannot connect to the extensions Marketplae at this time, please try again later."

I am still getting recommended extensions and my exsistng extension do update. My other computers with Visual Studio code on the same network are working correctly.

Things that didn't work: Restarting computer resetting Winsock Turning off Windows defender and firewall Tried uninstalling the User(stable) build and reinstalling. Tried install previous User(stable) build Tried the zip version.
Deleting the ..AppData\Local\Programs\Microsoft VS Code folder renameing the ".vscode" folder clearing storage in Developers Tools

Things that worked: The insider builds do work. Creating another user account and installing did work.

Work arounds: typing in @sort:name"name of extension" works

-1568835449265.log

VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z) OS version: Windows_NT x64 10.0.18362

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 1700X Eight-Core Processor (16 x 3394)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.93GB (22.60GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (18) Extension|Author (truncated)|Version ---|---|--- rainbow-brackets|2gu|0.0.6 path-intellisense|chr|1.4.2 bracket-pair-colorizer|Coe|1.0.61 hunspell-spellchecker|den|1.0.1 githistory|don|0.4.6 vscode-html-css|ecm|0.2.3 prettier-vscode|esb|2.2.2 auto-close-tag|for|0.5.6 auto-rename-tag|for|0.1.0 rest-client|hum|0.22.1 python|ms-|2019.9.34911 python-docs|Muk|0.8.3 autodocstring|njp|0.3.0 indent-rainbow|ode|7.4.0 postcss|ric|2.0.0 LiveServer|rit|5.6.1 code-settings-sync|Sha|3.4.2 markdown-preview-enhanced|shd|0.4.3
sandy081 commented 5 years ago

Can you please open console F1 > Toggle Developer Tools and open network tab and check requests to Marketplace and see if there are any errors?

NeoGlitch commented 5 years ago

I "cleared console" then try to search for an extension. Nothing appears in the networking tab. If I search with a filter such as @sort:rating the networking tab populates with info but no errors.

It does put 3 messages in the log(when searching without a filter). I have added the log. -1568835449265.log

sandy081 commented 5 years ago

Can you please try on our insiders and see if the issue appears? You can download insiders from here - https://code.visualstudio.com/insiders/

NeoGlitch commented 5 years ago

Yes the insider build still works.
My original post stated the insider build works:

"Things that `worked:
The insider builds do work.
Creating another user account and installing did work."

I would of normally just went with the create "new user" route but it would of taken a day to copy the data around. I have a small network and have to have the same user account on all the computers.

Also have some propriety software that requires me to activate it per user account. It is a real pain in the butt to get all the software reactivated.

Visual Studio Code is the only software that is malfunctioning. I have found other tickets with people with the same problem but they were all closed with no solution.

Any help is appreciated. Thank you.

sandy081 commented 5 years ago
  1. Are there any errors in the console tab?
  2. Can you please open shared process using F1 > Toggle Shared Process and check if there are any errors in the console tab?
NeoGlitch commented 5 years ago

F1 > Toggle Shared Process Nothing is displayed.

2019-10-03 10_23_45-

NeoGlitch commented 5 years ago

Searching with Console opens.... This just recreates the log files I have already attached. Searching with Console Open -1570124451543.log

NeoGlitch commented 5 years ago

I can search using filters for extensions "@sort:rating autoclose" Searching with rating filter -1570124756217.log

NeoGlitch commented 5 years ago

This is searching normally with network tab open.... Searching with network tab

NeoGlitch commented 5 years ago

This is searching with filter and network tab open.... "@sort:rating autoclose" Searching with filter and network tab

NeoGlitch commented 5 years ago

Tried to open link: Using DNS: 8.8.8.8 and 8.8.4.4 https://ms-python.gallerycdn.vsassets.io/extensions/ms-python/python/2019.8.29288/1565127378610/Microsoft.VisualStudio.Services.Icons.Default

Edge: image

Firefox: image

NeoGlitch commented 5 years ago

Then I used hh.exe https://ms-python.gallerycdn.vsassets.io/extensions/ms-python/python/2019.8.29288/1565127378610/Microsoft.VisualStudio.Services.Icons.Default

And this loads the PNG.

At this point, I was going to say it wasn't a visual studio code issue, since I could access the image from hh.exe. But when I changed back to DNS: 1.1.1.1 and 1.0.0.1 then Firefox and Edge could load the png.

I would say the issue is corruption in a cached file somewhere. The other supporting issue is the portable version has the same issue. But since I don't know much how VS code works I cannot fix it.

And the image loaded. image image

NeoGlitch commented 5 years ago

This issue is fixed.

  1. In command pallet.
  2. Type in 'clear'
  3. Click on each one:

I am not sure which one fixed it but now "Searching Extensions in...." works.

NeoGlitch commented 5 years ago

Postmortem: This is still a bug.

  1. Visual Studio code isn't able to recover from corruption in the search history cache.
  2. Also the Zip/Portable version should be completely self contained. It shouldn't be using a shared search cache between installed instances.
  3. The caches should be removed on an uninstall. (This causes a lot of confusion.)

I suspect the corruption was introduced when I was trying to test setting up a portable python development environment on a portable hard drive. I had the "user" and "portable" versions running at the same time as I was trying to install the extensions I liked on the portable visual studio code. This is probably a race condition on the shared search cache.

NeoGlitch commented 5 years ago

The issue came back. I am not able to resolve it with previous steps.

Overload119 commented 5 years ago

I'm also having the same problem. The steps earlier did not help my situation and the workaround by using filters doesn't either.

net::ERR_NETWORK_ACCESS_DENIED

image image

curl 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' -H 'X-Market-User-Id: dfeb9512-24ef-4f7b-a5e7-838006ffe957' -H 'Accept: application/json;api-version=3.0-preview.1' -H 'Origin: file://' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.36.1 Chrome/69.0.3497.128 Electron/4.2.5 Safari/537.36' -H 'X-Market-Client-Id: VSCode 1.36.1' -H 'Content-Type: application/json' --data-binary '{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"},{"filterType":12,"value":"4096"},{"filterType":10,"value":"test"}],"pageNumber":1,"pageSize":50,"sortBy":0,"sortOrder":0}],"assetTypes":[],"flags":914}' --compressed

Running this with CURL works fine in a terminal.

pizzacrystal commented 5 years ago

I am suffering to the same issue either. What is definite is i am not behind a proxy and the extension marketplace can be accessed few days ago with same setup and same network. In addition, I have tried to set a valid proxy for bypassing GFW's possible blocking. However, all attemptions are failed. vsc version vsc bug

NeoGlitch commented 5 years ago

It appears my issue is resolved. Closing Ticket since there has been no movement on the bug.

mihreteab commented 5 years ago

solved Go to

open network and Internet setting then off all toggles inside proxy Screenshot (18)

yagomassiah commented 5 years ago

None of these solutions seem to work for me, trying to deactivate proxy on windows nor clearing cache for search, history and so on.

Filtering actually works for me.

pizzacrystal commented 4 years ago

@yagomassiah hi, what do you mean about "filtering", thanks!

yagomassiah commented 4 years ago

@pizzacrystal I meant sorts, sorry. like sort by rating.

steal3rd commented 4 years ago

For me, the issue was related to the following files (Windows).

C:\Users\USERNAME\AppData\Roaming\Code\User\globalStorage\state.vscdb
C:\Users\USERNAME\AppData\Roaming\Code\User\globalStorage\state.vscdb.backup

I quit Code, and renamed them.

C:\Users\USERNAME\AppData\Roaming\Code\User\globalStorage\state.vscdb-disabled
C:\Users\USERNAME\AppData\Roaming\Code\User\globalStorage\state.vscdb.backup-disabled

Code re-created the files, and I was able to search the extensions again.

pizzacrystal commented 4 years ago

@steal3rd Quite appreciate, thanks a lot ! And I see your reply in #83399 too, where I submitted my solution.

TakesTheBiscuit commented 4 years ago

+1 issue on macbook