Closed Moortiii closed 3 years ago
After further investigation this appears to be an issue with the local instance of node and not an issue with the plugin itself.
Resolved by either:
a) Exporting NODE_TLS_REJECT_UNAUTHORIZED=0
b) Exporting NODE_EXTRA_CA_CERTS=/path/to/extra/ca_certificate
For plugins that allow for javascript configuration files, we can prepend the file with the following line if we are sure we don't need to perform certificate verificiation:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
Actual Behavior
If
vscode-graphql.rejectUnauthorized
is set tofalse
the GraphQL Language server still attempts to verify certificates. As a result, all queries fail and no autocomplete is provided.Expected Behavior
The request should succeed since it shouldn't care about the certificate.
Steps to Reproduce the Problem Or Description
graphql.config.js
file at the root of the projectsettings.json
(globally or locally in a project) and set the settingvscode-graphql.rejectUnauthorized
tofalse
.graphql
file in a directory in the project and open itIf I download the schema manually from the URL and set
schema
to use the local file autocomplete works perfectly.Specifications
Logs Of TS Server || GraphQL Language Service