visual-studio-codecertificate

VS Code: Unable to load schema from 'https://json.schemastore.org/xxx': unable to get local issuer certificate


VS Code (1.62.2) couldn't access to json schema to validate them. Each time I open package.json file, I got this message: "Problems loading reference 'https://json.schemastore.org/package': Unable to load schema from 'https://json.schemastore.org/package': unable to get local issuer certificate."

With Chrome on same computer, I could access to 'https://json.schemastore.org/package'. I tried different settings but without success, these is what I have in settings.json file:

 "http.proxy": "http://my.corporate.proxy",
  "http.proxyAuthorization": null,
  "http.proxyStrictSSL": false,

I tried also to set an http url to access to the package json schema but it didn't change anything

  "json.schemas": [
    {
      "fileMatch": ["package.json"],
      "url": "http://json.schemastore.org/package",
      "schema": true
    }
  ]

Thanks for your help


Solution

  • Mine was caused by the JSON Editor plugin. Here (https://github.com/Microsoft/vscode/issues/36197) it describes some settings that are needed, but disabling the plugin proved the cause.