# X_QUERY_DOWNLOAD_TOKEN_EXPIRED

## Means

a download URL is past its expiry

## Typical cause

the _token on GET /_x/query/<name> was minted more than the query's download.expiresInMs ago

## Fix

`await queryClient<Api['queries']>({ baseUrl }).<name>.url(input)   # right before the request; or raise download.expiresInMs (at most 3_600_000)`

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