vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Local issuer certificate error when attempting to use kubernetes schema

Open Parth6288 opened this issue 4 years ago • 8 comments

hi Team, I installed the yaml extension and also added the yaml schema as below.

{
    "git.autofetch": true,
    "git.suggestSmartCommit": false,
    "team.showWelcomeMessage": false,
    "explorer.confirmDelete": false,
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "yaml.schemas": {
        "kubernetes": "*.yaml"
    }
}

However i am not seeing the extension doing the autocomplete/suggestion. I am seeing below error though:

Unable to load schema from 'https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.17.0-standalone-strict/all.json': unable to get local issuer certificate.

Parth6288 avatar Oct 22 '20 11:10 Parth6288

Hi @Parth6288, Can you share more info about your environment?
I test on my(MacOS), and everything works.

evidolob avatar Oct 22 '20 11:10 evidolob

Are you able to access https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.17.0-standalone-strict/all.json directly? Are you behind some proxy?

JPinkney avatar Oct 22 '20 11:10 JPinkney

Hi @Parth6288, Can you share more info about your environment? I test on my(MacOS), and everything works.

I am using Windows 7 machine

Parth6288 avatar Oct 22 '20 16:10 Parth6288

Are you able to access https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.17.0-standalone-strict/all.json directly? Are you behind some proxy?

@JPinkney I am able to access this from my browser.

Parth6288 avatar Oct 22 '20 16:10 Parth6288

I'm getting quite similar issue with azure-pipelines.yml files

Unable to load schema from 'https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.174.2/service-schema.json': unable to get local issuer certificate.

I'm not behind any proxy and I can open schema in my browser

quasarea avatar Dec 09 '20 10:12 quasarea

I have a similar problem with the same error message but other source URLs, for example "Unable to load schema from 'https://json.schemastore.org/ansible-playbook': unable to verify the first certificate. YAML(768)".

I'm working behind a corporate proxy. However, the problem occurs whether I want to access our local or external JSON schemas. Other https requests of VS Code (e.g. for extensions) are working without any Problems.

mkjor avatar Jan 14 '21 15:01 mkjor

I have same issue, Problems loading reference 'https://sholvoir.github.io/word-lists/config.schema.yml': Unable to parse content from 'https://sholvoir.github.io/word-lists/config.schema.yml': Parse error at offset 0.YAML(768)

sholvoir avatar Apr 14 '21 22:04 sholvoir

I did some new tests and can't reproduce the problem now. Maybe there was an update since January that fixed the issue for my case.

mkjor avatar Apr 27 '21 09:04 mkjor