A failure due to the query timeout being exceeded.

This error can have one of two sources: 1. Fauna is behaving expectedly, but the query timeout provided was too aggressive and lower than the query's expected processing time. 2. Fauna was not available to service the request before the timeout was reached.

In either case, consider increasing the query_timeout_ms configuration for your client.

Hierarchy (view full)

Constructors

Properties

cause?: unknown
code: string

A code for the error. Codes indicate the cause of the error. It is safe to write programmatic logic against the code. They are part of the API contract.

constraint_failures?: ConstraintFailure[]

A machine readable description of any constraint failures encountered by the query. Present only if this query encountered constraint failures.

httpStatus?: number

The HTTP Status Code of the error.

message: string
name: string
queryInfo?: QueryInfo

Details about the query sent along with the response

stack?: string
stats?: QueryStats

Statistics regarding the query.

TODO: Deprecate this stats field. All ServiceErrors already provide access to stats through queryInfo.stats

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void