API error
length_required
HTTP 411 · no credit is used for a request that ends in an error.
A bulk upload was sent without a Content-Length header (for example as a chunked stream).
What to do
Send the file with a known length. Most HTTP clients do this when you pass the whole file.
Retry
No: fix the request. When and how often to retry any error: retrying safely.
The answer
{
"error": {
"code": "length_required",
"message": "Send a Content-Length header with the request body.",
"request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
}
}Branch on code, which is stable; message is for people and may change. Keep request_id in your logs.
Headers that come with it:
X-Request-Id: Our ID for the request (same asrequest_idin bodies).
Endpoints that can answer it
POST /v1/bulk(411)