-
Notifications
You must be signed in to change notification settings - Fork 2k
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-server-micro with graphiql issue - "Can't set headers after they are sent" #449
Comments
I am using them together right now and I ran across this. You can work around it by adding a single 200 route. I didn't investigate further but I added this to my routes and voila everything worked.
|
Fixes apollographql#449 for now by adding a noop route to the example so that graphiql does not 404.
Docs PR change submitted. |
I'm not sure that the PR is the correct resolution of the problem. It fix only the README example with a workaround :( |
I'll reopen the issue, it was auto-closed. PRs to fix it properly are very welcome. |
i'm getting this as well |
The problem I think is still there: #1523 |
The most recent comment on this issue is different than the original issue which was reported. I'm going to close this issue since it hasn't received a lot of traction and could have been resolved already, particularly since the If this is still a problem, would someone who's experiencing the problem (or anyone who comes across this issue and is able to assist) mind building a reproduction of the problem in to a runnable CodeSandbox reproduction using the latest version of Apollo Server and sharing the link to that CodeSandbox in this issue? I'm happy to re-open if this is still occurring and someone can provide a reproduction. Thanks again! |
The example on the README.md does not work.
When calling
GET http://localhost:3000/graphiql
it responds 404 instead of serving the graphiql html app.On console output there is an error message:
I think that on this line the request handler is not waiting for 'resolveGraphiQLString'; So the request pass to the next handler (the 404 handler on the README example).
Later, when 'resolveGraphiQLString' resolves it try to respond but the response was already sent.
The issue is very similar with this: #447
The text was updated successfully, but these errors were encountered: