# X_QUERY_TIMEOUT_INVALID

## Means

a read declares a timeoutMs that is not a whole positive number of ms

## Typical cause

query({ timeoutMs }) is 0, negative, a fraction, NaN or Infinity, or is set on a download read

## Fix

`query({ timeoutMs: 500 })  # a whole number of ms under the role bound, read with: psql "$DATABASE_URL" -c "show statement_timeout" — or drop timeoutMs`

[Queries and live queries](/error-codes#queries-and-live-queries)
