-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
GraphiQL interface doesn't load #12762
Comments
@jeremystretch were you able to reproduce this? I tried on local copy, rebuilt frontend, still works fine. |
Works in my 3.5.1 Not works in Demo |
Can you guys provide more information about your installations - I can't replicate either. Are they brand new? Have you done migrations? How about Collecting Static Files? |
@stuntguy3000 This is happening for me on the live demo API - https://demo.netbox.dev/graphql/ |
This is not a new installation; it's been upgraded since the 2.x days. The venv gets rebuilt for each release, making use of the upgrade.sh script. Here's a pip list of what's installed in the venv:
|
I'm currently looking at this as I wanted to fix something else with the GQL API - would be up for collaborating with someone to fix this current bug so I can open a PR and go through that process! Thanks. |
The following release broke it: https://github.com/graphql-python/graphene-django/releases/tag/v3.0.1
Probably specifically this commit: graphql-python/graphene-django@3283d0b#diff-a093738eb6c0d9559764bad4c87062d3087839acb88435bfbee607c610208d40L69 Our graphiql is an older version here: https://github.com/netbox-community/netbox/blob/develop/netbox/project-static/netbox-graphiql/package.json#L9 We would probably need to upgrade to fix it. The immediate workaroudn would be to pin graphene-django to 3.0.0. |
We could work on upgrading the necessary dependencies, but given that we're planning to replace |
NetBox version
3.5.2
Python version
3.9
Steps to Reproduce
Expected Behavior
GraphiQL interface to open in a new tab
Observed Behavior
Blank tab opens with:
Uncaught TypeError: graphqlWs is undefined
https://netbox/static/graphene_django/graphiql.js:76
https://netbox/static/graphene_django/graphiql.js:121
The text was updated successfully, but these errors were encountered: