vscode-yaml: YAML(786) Unable to load schema
Describe the bug
I’m getting the following “Problem” on a yaml file.
Unable to load schema from 'https://www.graphql-code-generator.com/config.schema.json': Request vscode/content failed unexpectedly without providing any details.
This is loaded from the default catalog, and I’m able to access the schema via browser and using curl within the vscode terminal. Please let me know how I can help debug.
Expected Behavior
Schema is downloaded without problem
Current Behavior
Schema isn’t loaded
Steps to Reproduce
- Create a file called codegen.yaml
- Type anything
Environment
- Windows
- Mac
- Linux
- other (please specify)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 9
- Comments: 25
same error I fix it by:
I’m experiencing the same issue, but for a different schema;
I’m able to access the URL just fine using curl (and with web browsers). I’m not behind a proxy.
Hello @Vivapercuore ,
I am facing the same issue, can you please explain what do you mean by: access it manually on browser ?
Thank you
I have encountered the same issue and share the same assumption as you. Our company utilizes Zscaler, and I have manually configured the ZScaler root and intermediate CA for Python requests, urllib libraries, as well as npm through environmental variables REQUESTS_CA_BUNDLE, SSL_CERT_FILE, and NODE_EXTRA_CA_CERTS. However, I am uncertain about the specific HTTP request library employed by the extension. To address this problem, it may be beneficial to include an option that allows users to specify the CA. This additional feature could potentially resolve the issue.
this worked for me however am not still sure where this is from
ctrl+shift+p => developer: reload window
or just quit and restart
open vpn and test in browser, make sure you can access the url, then reopen vscode
Yip error disappears when I disable proxy on startup
code --no-proxy-server