Skip to content
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 UI depends on external Javascript resources #17895

Closed
GSeiNet opened this issue Oct 30, 2024 · 3 comments · Fixed by #17901
Closed

GraphiQL UI depends on external Javascript resources #17895

GSeiNet opened this issue Oct 30, 2024 · 3 comments · Fixed by #17901
Assignees
Labels
netbox severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@GSeiNet
Copy link

GSeiNet commented Oct 30, 2024

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.5

Python Version

3.11

Steps to Reproduce

Click on GraphQL API Button
New Window open with Loading
then nothing happens no error

Expected Behavior

Wrong link is provided

Observed Behavior

nothing

@GSeiNet GSeiNet added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Oct 30, 2024
@arthanson
Copy link
Collaborator

@GSeiNet works fine on my install (and on demo.netbox.dev). I'd suggest closing this and opening this as a discussion as it will get wider exposure and extra people to help debug what is going on. You can go to the graphiql window directly at /graphql/ URL, you might try that to see if it shows any extra debug info, maybe also check server logs?

@arthanson arthanson added status: revisions needed This issue requires additional information to be actionable and removed status: needs triage This issue is awaiting triage by a maintainer labels Oct 30, 2024
@jeremystretch
Copy link
Member

@GSeiNet is your NetBox instance isolated from the Internet? I noticed that the GraphiQL interface is pulling resources from unpkg.com, but it's meant to be fully self-contained. That might be the issue you're running into.

@jeremystretch
Copy link
Member

I think 5c5a53b caused this issue: I removed the override of render_graphql_ide() to drop subscriptions_enabled without realizing this method is also used to override the template. (The custom template set on NetBoxGraphQLView has no effect and should be removed.)

@jeremystretch jeremystretch changed the title GraphiQL don`t start GraphiQL UI depends on external Javascript resources Oct 30, 2024
@jeremystretch jeremystretch self-assigned this Oct 30, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows and removed status: revisions needed This issue requires additional information to be actionable labels Oct 30, 2024
@jeremystretch jeremystretch added the netbox label Nov 1, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
netbox severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants