GraphQL Mutation Failures Due to Database Hostname Resolution Error #10823
Replies: 1 comment
-
| This is a classic transient DNS resolution issue, not really a Hasura-specific bug. A few things to check:
The core fix is to make your DNS resolution more resilient rather than changing anything in Hasura itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
During normal processing of GraphQL operations through Hasura GraphQL Engine, multiple requests failed with database connection errors. The errors occurred while executing GraphQL mutations that perform multiple insert operations into the backend database.
The investigation identified that the system experienced a temporary DNS resolution failure when attempting to connect to the database host. Because the database hostname could not be resolved during that period, the application was unable to establish a connection to the database.
As a result, GraphQL requests failed and the application returned service errors.
Observed Error
The key error message observed in logs was:
postgres-error: connection error
could not translate host name "" to address: Temporary failure in name resolution
This indicates that the system could not resolve the database hostname to an IP address at the time of the request.
The failure occurred before the database connection was established, meaning the GraphQL mutation was not executed.
Additionally, during investigation we noticed references to a transaction statement similar to:
BEGIN ISOLATION LEVEL REPEATABLE READ
Any guidance or insight would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions