-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not load schema file when the URL is redirected. #586
Comments
I ran into this issue today and appreciate the workaround. I wonder about the implications of a fix, since I could imagine it's coded to not follow redirects for reasons around security? |
Thanks for the workaround! It helps a lot but definitely RedHat team needs to find solution for this :/ |
This issue causes bug in |
Describe the bug
It seems the extension failed to load schema file from URL that is redirected.
e.g)
codeben.yml
Works fine. Loaded schema URL is https://www.schemastore.org/api/json/catalog.json
graphql.config.yml
Error. Loaded schema URL is https://unpkg.com/graphql-config/config-schema.json
The URL is redirected to
https://unpkg.com/graphql-config@4.0.1/config-schema.json
Expected Behavior
Load schema file even redirected.
Current Behavior
Throws error below, schema isn't loaded.
Steps to Reproduce
graphql.config.yml
graphql.config.yml
Environment
Workaround
create
.vscode/setting.json
The text was updated successfully, but these errors were encountered: