persisted_query_not_found
200 invalid_request. No document is stored for that hash.
| HTTP status | type | Surfaces |
|---|---|---|
| 200 | invalid_request | GraphQL |
What it means
No document is stored for that hash. Only a development key stores one; a production key never does.
What to do
Send the query text beside the same hash: it runs either way, and the SDK and Apollo do this for you. To stop the miss, register the documents at build time with a development key (capa persist).
On GraphQL
/api/graphql answers the same code inside errors[].extensions. The status depends on the Accept header you send (status codes):
application/json | graphql-response+json | When |
|---|---|---|
| 200 | 200 | the hash is not registered, or the document stored for it does not run with this key as sent. The message is exactly PersistedQueryNotFound |