model_starting
Calling your endpoint, HTTP status 200.
HTTP status 200 inside a response that waited, or 503 with the X-BitsRun-Wait: 0 header or when 4 of your requests already wait on that endpoint.
What happened: The endpoint was asleep and is still starting. Requests wait up to 8 minutes for it; this answer means it took longer (a very large model or a slow download), and the error arrives in the body because the response had already started. With X-BitsRun-Wait: 0 you get it as a 503 after about 45 seconds, with a Retry-After: 30 header.
How to fix it: Send the request again; the model keeps starting meanwhile. Start-up time is never billed. See Cold starts.
How it looks
The response has HTTP status 200 and a JSON body with the same three fields as every BitsRun error:
{ "error": { "code": "model_starting", "message": "...", "requestId": "01k9a2b3c4d5e6f7g8h9j0k1m2" } }- code never changes, so your code can check for it and react.
- message says what happened in plain words; show it to your users or log it.
- requestId identifies this request. Include it when you write to support@bitsrun.com.
The bitsrun command line prints the message and the request id; add --json to see the full error.
Still stuck? Email support@bitsrun.com with the requestId from the error and a real person will look into it.
Other calling your endpoint errors
Every code on one page: Error codes in the docs.