Skip to content

database_query_timeout โ€‹

database_query_timeout

Description โ€‹

A database query timed out while the endpoint was reading or writing switching data.

HTTP Status โ€‹

500 Internal Server Error

doc_url Format โ€‹

The doc_url value is an absolute URL and changes by environment:

<docs-base-url>/errors/database_query_timeout

Typical Causes โ€‹

  • The database was slow or overloaded.
  • A lock or long-running query blocked the operation.
  • The request touched a hot row or a large dataset.

Example โ€‹

Response:

json
{
  "errors": [
    {
      "code": "database_query_timeout",
      "message": "Failed to create self-invested switch",
      "doc_url": "https://docs.example.com/errors/database_query_timeout"
    }
  ]
}

How To Fix โ€‹

  1. Retry if the operation is safe.
  2. Check database health and slow queries.
  3. Inspect application logs if the timeout repeats.