Open mapero opened 4 years ago
@mapero Some work was done to make Spectral support HTTP Proxies via the JS API, I'm wondering if this has helped your situation? It might not be enough, we might need to get some values passed through VS Code and into the JS API, but I was hoping you could help us out and take a look at this one? https://github.com/stoplightio/spectral/issues/1081
@philsturgeon , @mapero , this issue still occurs.
The changes made to Spectral to support proxies work when I run Spectral at the command line, including when I run it using the terminal within VS Code itself. The same configuration does not work with the VS Code extension.
I can confirm this is still an issue
Describe the bug it seems like the visual studio code extension does not use the configured http proxy (http_proxy, https_proxy) in vscode. I am not able to load spectral “extends” from http / https behind corporate proxy. I am unsure to report this as a bug, since I do not have comprehensive logs whats happening, and why it fails.
It seems like spectral is using “PROXY” instead of the linux standard “http_proxy” / “https_proxy”.
Expected behavior Use vscode proxy settings or linux default http_proxy / https_proxy
Environment:
Additional context Http proxy to comnect to internet