insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Bug] Can't retrieve schema for GraphQL

Open rolurq opened this issue 5 years ago • 10 comments

  • 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

schema

I took the graphql body in the request sent by insomnia and tried it in Insomnia itself and it works.

test

So I guess the issue must be in the code that works with the fetched schema.

rolurq avatar Nov 22 '18 22:11 rolurq

👋 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.

welcome[bot] avatar Nov 22 '18 22:11 welcome[bot]

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 avatar Nov 22 '18 22:11 gschier

@gschier sorry, I'm unable to provide the public endpoint :disappointed:

rolurq avatar Nov 23 '18 13:11 rolurq

@gschier Any updates on this?

rolurq avatar Nov 27 '18 18:11 rolurq

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 avatar Dec 12 '18 16:12 gschier

@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).

jeromedalbert avatar Feb 05 '19 22:02 jeromedalbert

Ya I think a way to enable periodic refresh would be good to add back

gschier avatar Mar 07 '19 21:03 gschier

@gschier or maybe a keyboard shortcut for refreshing a schema might be nice to have.

seanwash avatar Dec 04 '19 18:12 seanwash

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.

wdawson avatar Jul 01 '21 21:07 wdawson

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

kreosus avatar Sep 02 '22 13:09 kreosus