question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 graphiql route

See original GitHub issue

I’m getting a 404 when going to mysite/graphiql. It is appending a slash to the url after not finding the route.

image

Here are my urls:

urlpatterns = [
    path("admin/", admin.site.urls),
    path("graphql", ProtectedGraphQLView.as_view()),
    path("graphiql", GraphQLView.as_view(graphiql=True)),
]

If I changed graphiql to anything else it works.

urlpatterns = [
    path("admin/", admin.site.urls),
    path("graphql", ProtectedGraphQLView.as_view()),
    path("test", GraphQLView.as_view(graphiql=True)),
]

image image

Please let me know if you need any other information.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jkimbocommented, Jun 24, 2019

Yep I’m not sure what is going on sorry. I’m going to close this issue now since I’m pretty confident this is not an issue with Graphene-Django. Do report back if you find out the problem though!

1reaction
jkimbocommented, Jun 24, 2019

@brandonmbanks I’ve tried that branch and it works fine for me:

Screenshot 2019-06-24 16 15 57 Screenshot 2019-06-24 16 16 09

It’s very odd but I don’t think there is anything wrong with Graphene-Django. It has to be something to do with your setup (and something that is not in the code).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring boot GraphQL showing 404 - Stack Overflow
I am new to GraphQL. However, after watching couple of videos and GraphQL blogs I decided to give it a try but I...
Read more >
GraphQL Spring Boot - Up and Running with ... - Dan Vega
In this tutorial you are going to learn how to get up and running with Spring for GraphQL. At the time of this...
Read more >
GraphQL Best Practices
A query language for your API — GraphQL provides a complete description of the data in your API, gives clients the power to...
Read more >
Spring for GraphQL Documentation
GraphQlWebSocketHandler can be exposed as a WebSocket endpoint by declaring a SimpleUrlHandlerMapping bean and using it to map the handler to a URL...
Read more >
Understanding GraphQL Error Handling Mechanisms in ...
It also aims to bring an in-depth understanding of how the Graphql Java ... “path”: a key describing the absolute path from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found