[GH-ISSUE #4276] [bug]: Introspection in GraphQL not working when OAuth2 is active #1553

Open
opened 2026-03-16 20:49:14 +03:00 by kerem · 4 comments
Owner

Originally created by @haarhoff-frs on GitHub (Aug 19, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4276

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I have a GraphQL endpoint that requires OAuth2 authentification. When I click on "connect" in the GraphQL screen after entering the endpoind and filling out the authorization details, nothing happens and an error gets logged:

Error: Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: undefined.

The actual query I want to send does work.
When I allow anonymous access to the GraphQL endpoint, introspection works properly.

Steps to reproduce

  1. Go to the GraphQL view
  2. Enter a GraphQL endpoint that required OAuth2 authorization with client credentials
  3. Enter credentials in the tab "Authorization"
  4. Click on "Connect"
  5. The connect button briefly flashes, the error message mentioned above is displayed in the console
  6. Enter a query and click on "Run"
  7. The query is executed normally
  8. Enable anonymous access on the GraphQL server
  9. Click on connect again
  10. Introspection works

Environment

Production

Version

Cloud

Originally created by @haarhoff-frs on GitHub (Aug 19, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4276 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I have a GraphQL endpoint that requires OAuth2 authentification. When I click on "connect" in the GraphQL screen after entering the endpoind and filling out the authorization details, nothing happens and an error gets logged: ``` Error: Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: undefined. ``` The actual query I want to send does work. When I allow anonymous access to the GraphQL endpoint, introspection works properly. ### Steps to reproduce 1. Go to the GraphQL view 2. Enter a GraphQL endpoint that required OAuth2 authorization with client credentials 3. Enter credentials in the tab "Authorization" 4. Click on "Connect" 5. The connect button briefly flashes, the error message mentioned above is displayed in the console 6. Enter a query and click on "Run" 7. The query is executed normally 8. Enable anonymous access on the GraphQL server 9. Click on connect again 10. Introspection works ### Environment Production ### Version Cloud
Author
Owner

@ryanrixxh commented on GitHub (Sep 18, 2024):

I also receive this same error when using Bearer Token Authentication. Requests work, but schema introspection fails.

<!-- gh-comment-id:2357756070 --> @ryanrixxh commented on GitHub (Sep 18, 2024): I also receive this same error when using Bearer Token Authentication. Requests work, but schema introspection fails.
Author
Owner

@ivank commented on GitHub (Nov 13, 2024):

Same error here - I think the "Connect" doesn't take Authorization headers into account at all.

<!-- gh-comment-id:2473119568 --> @ivank commented on GitHub (Nov 13, 2024): Same error here - I think the "Connect" doesn't take Authorization headers into account at all.
Author
Owner

@johan-lindqvist commented on GitHub (Feb 19, 2025):

Any updates on this? Makes it very problematic to use in our case if introspection doesn't support any kind of authorization/api key

<!-- gh-comment-id:2668115893 --> @johan-lindqvist commented on GitHub (Feb 19, 2025): Any updates on this? Makes it very problematic to use in our case if introspection doesn't support any kind of authorization/api key
Author
Owner

@FeuGuillaume186 commented on GitHub (Sep 1, 2025):

I have the same problem and it still hasn’t been resolved, it’s such a shame.

<!-- gh-comment-id:3242556986 --> @FeuGuillaume186 commented on GitHub (Sep 1, 2025): I have the same problem and it still hasn’t been resolved, it’s such a shame.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1553
No description provided.