redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
661 stars 221 forks source link

Local issuer certificate error when attempting to use kubernetes schema #382

Open Parth6288 opened 4 years ago

Parth6288 commented 4 years ago

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.

evidolob commented 4 years ago

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

JPinkney commented 4 years ago

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?

Parth6288 commented 4 years ago

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 commented 4 years ago

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.

quasarea commented 3 years ago

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

mkjor commented 3 years ago

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.

sholvoir commented 3 years ago

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)

mkjor commented 3 years ago

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.