All error codes

invalid_task_id

HTTP 400 Task id is malformed

What happened

The task id is not in the expected form. A task id is 32 hexadecimal characters, exactly as returned in the task.id and task.poll fields of an asynchronous response.

What to do

Copy the id from the response that started the operation rather than composing it yourself. A well-formed id we do not know returns task_not_found (404), not this code.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_task_id",
    "title": "Task id is malformed",
    "status": 400,
    "code": "invalid_task_id",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.