insomnia
insomnia copied to clipboard
[Bug] Can't retrieve schema for GraphQL
- Insomnia Version: 6.2.0
- Operating System: Linux knight 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-10-07) x86_64 GNU/Linux
Details
Insomnia fails to retrieve the GraphQl schema. It shows this error
I took the graphql body in the request sent by insomnia and tried it in Insomnia itself and it works.
So I guess the issue must be in the code that works with the fetched schema.
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. If you're requesting a feature 🎁, please provide real use cases that would benefit. 👪
To help make this a smooth process, please be sure you have first read the contributing guidelines.
Would you be able to provide a public GraphQL endpoint to test this with? I have a feeling that the graphql
dependency might just need updating but I can't tell
@gschier sorry, I'm unable to provide the public endpoint :disappointed:
@gschier Any updates on this?
There isn't much I can do if I can't reproduce it. I just updated the GraphQL dependencies though so maybe that will fix it 😄
@gschier A similar thing happens to me on Insomnia 6.3.2; maybe this is a separate issue.
When I modify my GQL API, the API URL stays the same so there is no auto-refresh. I have to point-and-click to manually refetch the schema for warnings to disappear.
Refetching the schema somehow automatically, like in previous versions, would be nice in development, where I modify the schema in my codebase and test it straight away with Insomnia.
Or having a keyboard shortcut so that people don't need to point-and-click to refresh their schemas (still manual but less painful).
Ya I think a way to enable periodic refresh would be good to add back
@gschier or maybe a keyboard shortcut for refreshing a schema might be nice to have.
Sorry folks! This was incorrectly tagged as a feature request along with other bugs. I'm going back through and cleaning up, sorry for the inconvenience.
@seanwash or @jeromedalbert if you're still looking for this enhancement, feel free to check out the Ideas in GitHub Discussions.
Hi @rolurq Do you see the same behavior with our latest release located here: https://github.com/Kong/insomnia/releases/tag/core%402022.6.0-beta.4