antfu / vscode-iconify

πŸ™‚ Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
427 stars 27 forks source link

[Error] Does not work behind proxy #74

Open mubaidr opened 3 months ago

mubaidr commented 3 months ago

Describe the bug

When using proxy setting in vscode, icon set failed to load with following error:

🈢 Activated, v0.7.5
πŸŽ› 167 icon sets loaded
⏳ [heroicons] Downloading from https://icones.js.org/collections/heroicons.json
πŸ› ERROR: FetchError: [GET] "https://icones.js.org/collections/heroicons.json": <no response> fetch failed
FetchError: [GET] "https://icones.js.org/collections/heroicons.json": <no response> fetch failed
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at $fetchRaw2 (c:\Users\ubaid58653\.vscode-insiders\extensions\antfu.iconify-0.7.5\index.js:10597:14)
    at $fetch22 (c:\Users\ubaid58653\.vscode-insiders\extensions\antfu.iconify-0.7.5\index.js:10630:16)
    at c:\Users\ubaid58653\.vscode-insiders\extensions\antfu.iconify-0.7.5\index.js:10741:16

Please note that:

Reproduction

Just set proxy with auth i.e. http://12345:12345@127.0.0.1:1234

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
    Memory: 15.66 GB / 31.73 GB
  Binaries:
    Node: 20.12.0 - E:\dev_tools\nodejs\node.EXE
    npm: 10.5.0 - E:\dev_tools\nodejs\npm.CMD
    pnpm: 8.15.5 - E:\dev_tools\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (123.0.2420.65)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Validations

Ahuahuachi commented 3 months ago

Enabling http.experimental.systemCertificatesV2 worked for me.

mubaidr commented 3 months ago

I have it already enabled. Still not working.

mmach2000 commented 2 months ago

My workaround: download all icon-set JSONs; setup a local server using miniserve, etc.

kathirr007 commented 1 week ago

Enabling http.experimental.systemCertificatesV2 worked for me.

This works for me. Thank you @Ahuahuachi