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
Since 2022.7.0 Insomnia cannot get schema from graphql api #5542
Comments
@Exifs do you notice the same 403 errors if you try with another server (e.g. https://rickandmortyapi.com/graphql) Can you also share error logs you see from Dev Console of Insomnia? |
No, with this URL I get a 401 error. |
I see the same thing. For example, I authenticate to a GraphQL API using an OAuth 2.0 client credentials grant. Insomnia correctly acquires and submits a token when I request the endpoint itself. However, from what I can see in the render log, it looks like schema requests, in particular, may drop the token on the floor.
|
+1, also seeing a 401 error after updating to 22.7.0. I've tested this using GitHub's GraphQL API, and confirmed that requests using the same token are making it through. Looks like this only affects schema introspection. In the meantime, I've downgraded to release 22.6.0 and disabled automatic updates. Logs:
|
+1 on 401 error, we use OAuth2, and this used to work with schema, but after upgrade it is like it ignored the authentication plugin and values and just fails. Even if I try manually it still fails. Just upgraded to 2022.7.0 this morning. |
I can confirm that 2022.7.0 is not able to fetch the schema! A 401 error was displayed. |
I used |
Yep, same problem here, our endpoint requires authentication and the introspection query does not use the authentication provided with the query (in our case HTTP Request Signature) |
The same mistake for me, if I try to fetch Schema (and I'm using |
Same here. We can no longer refresh the schema. We are using a fixed bearer token. |
I'm seeing the same behavior with MacOS on M1. I am using OAuth 2.0 and the schema query fails with 401 while the actual graphql query succeeds. |
The Graphql introspection query is not being run with the current request authentication. Downgrading to 22.6.0 was the only way to get it working. |
I noticed the same thing. Since the latest update Insomnia starts dropping |
Downloaded 22.7.0 today and I am experiencing same. Downgrading to 22.6.0 |
The same issue, schemas are not fetched at all, all my colleagues have similar issue |
Wow, I enabled automatic schema fetch, and it works now UPD. |
I couldn't find that option. |
+1 I also can't figure out what @nikolayandr is referring to with, "enabling auth schema fetch" |
That didn't seem to help in my case. The introspection query still fails as the |
In my case no Authorization is necessary so looks like it is enough to get schema fetching working after enabling automatic fetching |
So, it looks like there was a huge refactor on the I'd love to try and push a fix for it, but I really don't have the bandwidth to do that at the moment. |
We have a fix up at #5611 and it'll be in the next dot release, thanks for your patience. |
Expected Behavior
Insomnia should be able to get schema from introspection url and help with autocompletion.
Actual Behavior
Since the upate, my working query are now getting a 403 error while getting the schema.
But creating a GET HTTP request to the same url with /schema.json is working
Reproduction Steps
try to use a graphql query and use the auto schema fetching
Is there an existing issue for this?
Additional Information
Version: Insomnia 2022.7.0
Build date: 15/12/2022
OS: Windows_NT x64 10.0.22000
Electron: 22.0.0
Node: 16.17.1
V8: 10.8.168.20-electron.0
Architecture: x64
Insomnia Version
2022.7.0
What operating system are you using?
Windows
Operating System Version
windows 11
Installation method
downloaded from the websit and automagically updated
Last Known Working Insomnia version
2022.6.0
The text was updated successfully, but these errors were encountered: