solo-io / gloo

The Feature-rich, Kubernetes-native, Next-Generation API Gateway Built on Envoy
https://docs.solo.io/
Apache License 2.0
4.09k stars 438 forks source link

GraphQL queries from second GraphiQL tab fail in Gloo Edge dashboard #7467

Open jameshbarton opened 1 year ago

jameshbarton commented 1 year ago

Gloo Edge Version

1.13.x (beta)

Kubernetes Version

No response

Describe the bug

GraphQL queries from a second GraphiQL tab fail in Gloo Edge dashboard.

Steps to reproduce the bug

  1. Follow this Instruqt workshop to the end of the second exercise.
  2. Issue an identical query from a new query tab as shown in this video. Observe it fail with this message:
    {
    "errors": [
    {
      "message": "wrong type for variables: found 3, expected 0, variables {}"
    }
    ]
    }

Expected Behavior

The query on the new tab should work just like on the original tab.

Additional Context

Gloo Edge Enterprise 1.13.0-beta10

williamgrh commented 1 year ago

This is happening due to the "Query Variables" panel in the bottom left not being auto populated when a new tab is opened in the explorer. For now, it can be fixed by inputting {} in that field. This isn't something we currently have direct control over, but we're going to take a look and see if there's any way we can populate it to prevent further errors.

github-actions[bot] commented 4 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.