microsoft / vscode

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

Error while fetching extensions.Failed to fetch #229127

Closed krish4120 closed 1 month ago

krish4120 commented 1 month ago

Type: Bug

I am facing error while searching new extension Error while fetching extensions.Failed to fetch

VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.71GB (1.43GB free)| |Process Argv|--crash-reporter-id 69c87298-2843-4291-ae05-044df4544d90| |Screen Reader|no| |VM|0%|
Extensions (35) Extension|Author (truncated)|Version ---|---|--- vscode-dbt|bas|0.5.1 python-logger-vscode|bri|0.2.6 codediagram|Cod|0.0.87 gitlens|eam|15.5.1 vscode-html-css|ecm|2.0.10 codespaces|Git|1.17.3 vscode-pull-request-github|Git|0.96.0 cloudcode|goo|2.17.0 gc-excelviewer|Gra|4.2.62 vscode-dbt-formatter|hen|1.0.1 vscode-peacock|joh|4.2.2 vsc-python-indent|Kev|1.18.0 l13-diff|L13|1.3.8 rainbow-csv|mec|3.12.0 json|Mee|0.1.2 vscode-docker|ms-|1.29.2 vscode-dotnet-runtime|ms-|2.1.5 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.11.2024082901 isort|ms-|2023.10.1 python|ms-|2024.15.2024091301 vscode-pylance|ms-|2024.9.1 remote-containers|ms-|0.384.0 remote-wsl|ms-|0.88.3 material-icon-theme|PKi|5.10.0 vscode-yaml|red|1.15.0 LiveServer|rit|5.7.9 synthwave-vscode|Rob|0.1.15 jinjahtml|sam|0.20.0 semanticdiff|sem|0.9.0 snowflake-vsc|sno|1.10.1 code-spell-checker|str|3.0.1 rainbow-bracket|tal|1.0.2 turntable-for-dbt-core|Tur|1.0.4 jinja|who|0.0.8 (4 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 nativeloc2:31134642 wkspc-ranged-t:31125599 fje88620:31121564 iacca2:31138163 ```
sandy081 commented 1 month ago

Can you please share the following log

krish4120 commented 1 month ago
Screenshot 2024-09-23 151442
sandy081 commented 1 month ago

Can you please share the log I asked for?

krish4120 commented 1 month ago

`log.ts:419 INFO Started local extension host with pid 47084. 2log.ts:419 INFO [googlecloudtools.cloudcode]: Menu item references the same command as default and alt-command marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:419 INFO [perf] Render performance baseline is 71ms console.ts:137 [Extension Host] Congratulations, your extension "CodeDiagram" is now active! TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/redhat.vscode-yaml-1.15.0/syntaxes/yaml.tmLanguage.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.html.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja-html.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-html.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.yaml.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja-yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-yaml.json register @ TMScopeRegistry.ts:46 console.ts:137 [Extension Host] Verbose logging disabled console.ts:137 [Extension Host] Cloud Code version 2.17.0 console.ts:137 [Extension Host] Version detail: 672320419 built on 2024-09-09T17:14:20.175Z console.ts:137 [Extension Host] [INFO] 2024-09-23T09:39:59.059Z - Translations initialized. console.ts:137 [Extension Host] [INFO] 2024-09-23T09:39:59.067Z - Extension activated! TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/redhat.vscode-yaml-1.15.0/syntaxes/yaml.tmLanguage.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.html.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja-html.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-html.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.yaml.jinja. Old grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/samuelcolvin.jinjahtml-0.20.0/syntaxes/jinja-yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/KrishnaKumar/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-yaml.json register @ TMScopeRegistry.ts:46 console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'rest') at Object.tokenize (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\node_modules\prismjs\prism.js:700:23) at DocumentDecoration.updateDecorations (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\out\src\models\documentDecoration.js:337:31) at Timeout._onTimeout (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\out\src\models\documentDecoration.js:110:18) at listOnTimeout (node:internal/timers:573:17) at processTimers (node:internal/timers:514:7) C @ console.ts:137 console.ts:137 [Extension Host] Activating plugin Api console.ts:137 [Extension Host] Activating plugin Secrets console.ts:137 [Extension Host] Activating plugin ProjectManager console.ts:137 [Extension Host] Activating plugin Apigee console.ts:137 [Extension Host] Activating plugin GCE console.ts:137 [Extension Host] Activating plugin GCF console.ts:137 [Extension Host] Activating plugin AwsLambdaImporter console.ts:137 [Extension Host] Activating plugin SourceProtect console.ts:137 [Extension Host] Activating plugin CloudStorage console.ts:137 [Extension Host] Activating plugin Migrate console.ts:137 [Extension Host] Activating plugin MainframeModernization console.ts:137 [Extension Host] Activating plugin minikube console.ts:137 [Extension Host] Activating plugin Gemini Code Assist console.ts:137 [Extension Host] Activating plugin BigQuery console.ts:137 [Extension Host] Done activating plugin Api, took 23.28189999999995ms console.ts:137 [Extension Host] Done activating plugin Secrets, took 22.171000000000276ms console.ts:137 [Extension Host] Done activating plugin ProjectManager, took 20.623199999999997ms console.ts:137 [Extension Host] Done activating plugin GCE, took 11.244200000000092ms console.ts:137 [Extension Host] Done activating plugin AwsLambdaImporter, took 9.59020000000055ms console.ts:137 [Extension Host] Done activating plugin SourceProtect, took 10.006400000000212ms console.ts:137 [Extension Host] Done activating plugin CloudStorage, took 8.821200000000317ms console.ts:137 [Extension Host] Done activating plugin Migrate, took 9.469699999999648ms console.ts:137 [Extension Host] Done activating plugin MainframeModernization, took 9.794799999999668ms console.ts:137 [Extension Host] Done activating plugin minikube, took 9.55749999999989ms console.ts:137 [Extension Host] Done activating plugin BigQuery, took 8.98949999999968ms console.ts:137 [Extension Host] Done activating plugin Gemini Code Assist, took 22.267000000000735ms console.ts:137 [Extension Host] Done activating plugin GCF, took 137.98369999999977ms console.ts:137 [Extension Host] Done activating plugin Apigee, took 989.4988999999996ms console.ts:137 [Extension Host] Starting YAML Language Client console.ts:137 [Extension Host] YAML Language Client Started 8console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'rest') at Object.tokenize (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\node_modules\prismjs\prism.js:700:23) at DocumentDecoration.updateDecorations (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\out\src\models\documentDecoration.js:337:31) at Timeout._onTimeout (c:\Users\KrishnaKumar.vscode\extensions\tal7aouy.rainbow-bracket-1.0.2\out\src\models\documentDecoration.js:110:18) at listOnTimeout (node:internal/timers:573:17) at processTimers (node:internal/timers:514:7) C @ console.ts:137 marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439 ERR Failed: Failed to fetch at ie.E (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:40098) at async ie.C (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36801) at async ie.z (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:33282) at async ie.getExtensions (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:32380) at async se.getExtensions (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2752:16142) at async Re.Oc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:24253) at async Re.Xc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:27101) at async Re.uc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:13456) at async vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:11715 marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439 ERR Failed: Failed to fetch at ie.E (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:40098) at async ie.C (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36801) at async ge (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:35745) at async ie.query (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36040) at async se.queryGallery (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2752:15713) at async Te.Kc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:22046) at async Te.uc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:13456) at async vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:11715 marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439 ERR Failed: Failed to fetch at ie.E (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:40098) at async ie.C (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36801) at async ie.z (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:33282) at async ie.getExtensions (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:32380) at async se.getExtensions (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2752:16142) at async Re.Oc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:24253) at async Re.Xc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:27101) at async Re.uc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:13456) at async vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:11715 marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439 ERR Failed: Failed to fetch at ie.E (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:40098) at async ie.C (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36801) at async ge (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:35745) at async ie.query (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36040) at async se.queryGallery (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2752:15713) at async Te.Kc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:22046) at async Te.uc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:13456) at async vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:11715 marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1

   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439 ERR Failed: Failed to fetch at ie.E (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:40098) at async ie.C (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36801) at async ge (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:35745) at async ie.query (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:826:36040) at async se.queryGallery (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2752:15713) at async Te.Kc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:22046) at async Te.uc (vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:13456) at async vscode-file://vscode-app/c:/Users/KrishnaKumar/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2688:11715`

sandy081 commented 1 month ago

Seems proxy related

krish4120 commented 1 month ago

How to resolve it?

chrmarti commented 1 month ago

Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection in VS Code?

If you cannot install the extension through the Extensions viewlet in VS Code, you can use the Download Extension link on the above linked page and then install the downloaded VSIX with F1 > Extensions: Install VSIX....

Related: https://github.com/microsoft/vscode/issues/227559

vs-code-engineering[bot] commented 1 month ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

mahdidev88 commented 1 month ago

If you are using VPN or DNS, turn it off. If your VPN is turned off, turn it on and off to resolve the VS code error.

AnDongZhang-AI commented 3 weeks ago

Seems proxy related

how to resolve it?