Invalid request
The request is malformed, so we could not read it.
- Status
- Type
https://docs.digitospace.com/problems/invalid-request
What it means
We could not make sense of the request. Something in its shape is wrong, such as an ID in the path that is not a valid ID, a cursor or limit we cannot read, or a body that is not valid JSON.
This is different from Validation failed, where we could read the request but some of its values break the rules.
How to fix it
- Read
detail. It names what we could not read. - Check that IDs in the path are copied whole from an earlier response.
- Pass
cursorexactly as it came inmeta.page.nextCursor. - Check the body is valid JSON, for example by parsing it before you send it.
- For
answer_cut_off, allow more output tokens, withmax_tokensor the task's limit, so the whole JSON fits.
Sending the same request again gets the same answer.
Codes
| Code | Retryable | When |
|---|---|---|
invalid_request | No | A bad ID, cursor, limit, or JSON body |
answer_cut_off | No | AI: the answer reached its token limit before its JSON finished |
frame_invalid | No | Messaging: a frame sent over the live connection could not be read |
Last updated