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

graphql endpoint Method POST not allowed for URL #24

Open
sjacobs-mn opened this issue Jun 22, 2021 · 1 comment
Open

graphql endpoint Method POST not allowed for URL #24

sjacobs-mn opened this issue Jun 22, 2021 · 1 comment

Comments

@sjacobs-mn
Copy link

sjacobs-mn commented Jun 22, 2021

When I add the code shown in the example and point my browser to the URL the GraphiQL web page is displayed but an error stating Method POST not allowed for URL. I see the GET request to serve the web page for the GraphiQL UI returned successfully. I then see a POST request and the error "Method POST not allowed for URL" is returned.

After asking on the Sanic Discord support channel it was recommended that I add methods=['POST'] to the app.add_route call but this did not change the outcome.

This is running with:
sanic v21.3.4
sanic-graphql v1.1.0
graphene v2.1.8

@chrisryancombs
Copy link

I ran into this issue and solved it by changing my sanic version to 20.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants