HTTP timeouts
This section describes recommended best practices for handling HTTP errors.
Causes of HTTP 503 errors
The 503 HTTP status response code indicates that a timeout occurred, which could be caused by contended queries or queries with high compute operations, for example.
How to recover from timeout errors
The best practice for handling 503 responses is to retry the query. Initially, retry using a smaller timeout value so your query can fail faster. Retry, applying an exponential back-off time so you are not continuing to query while posting queries can never succeed.
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!