-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Time out for post graphql server #623
Comments
What timeout are you looking for? |
We have a query which runs for a few minutes in Postgres. When the same query is written in GraphiQL,the server responds with 504 Gateway timeout exactly after 1.5 min. We would like to change the 1.5 min timeout variable. |
I'm not aware of this limit (that isn't to say it doesn't exist). The error "Gateway Timeout" implies that you have something between the PostGraphQL server and the client (aka a "Gateway") and that that is causing the connection to time out. On Heroku this period is 30 seconds. |
The nodeJS http server has a default timeout of two minutes (reference). Which makes the project automatically terminate connections after two minutes. This can be modified by setting server.setTimeout(10 * 60 * 1000) at postgraphile/cli.ts#L424 |
This was added by the above commit 🙏 |
Can you plz let me know where to set the timeout for postgraphql server.
The text was updated successfully, but these errors were encountered: