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

  1. Create a file called codegen.yaml
  2. Type anything

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 9
  • Comments: 25

Most upvoted comments

same error I fix it by:

  • access it manually on browser
  • reload IDE window
  • done

I’m experiencing the same issue, but for a different schema;

Unable to load schema from ‘https://goreleaser.com/static/schema.json’: Request vscode/content failed unexpectedly without providing any details.YAML(768)

I’m able to access the URL just fine using curl (and with web browsers). I’m not behind a proxy.

Version: 1.64.2
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:29.527Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.16.8-200.fc35.x86_64

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.

same error I fix it by:

  • access it manually on browser
  • reload IDE window
  • done

this worked for me however am not still sure where this is from

How do I reload the IDE window?

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