Fuser

Errors and retries

Error responses, rate limits and retrying safely.

A failed request returns a JSON body with a message written to be acted on:

{
  "code": "BAD_REQUEST",
  "message": "The diff was rejected. Fix every error and resend: ..."
}

A 409 also has a reason: stale_revision, idempotency_key_reused or canvas_not_editable. A 400 for invalid input lists issues, each with a message and the path of the field.

StatusMeaning
400The request is wrong; the message says how.
401The API key is missing or invalid.
403The key can't do this, or you can't use this workspace.
404The canvas, run or file doesn't exist, or isn't yours.
409The canvas changed since you read it, or a run was retried with the same idempotencyKey but a different maxCredits.
429Over 300 requests a minute from one key. Wait the Retry-After header's seconds and try again.
5xxFuser had a problem. Retry with the same idempotencyKey.

Retrying safely

canvas_edit and run_start take an idempotencyKey. Sending the same request again with the same key returns the first result instead of doing it twice, so retry with the same key after a timeout or dropped connection.

canvas_edit also takes expectedRevision: the edit is refused with 409 if someone changed the canvas since you read it. Read it again and resend.

On this page