Public APIError codes
Public APIError codes
Idempotency-Key reused with a different request (idempotency_key_reused)
What the GetItDone API problem code idempotency_key_reused (HTTP 422) means, what causes it, and how to fix it.
- HTTP status: 422
- Problem type URI: https://nowgetitdone.com/docs/api/problems/idempotency-key-reused
What it means
An Idempotency-Key was reused with a DIFFERENT request body than the one it first recorded.
Likely causes
- A key was recycled across two genuinely different requests.
- The request body changed between the first attempt and the retry.
How to fix
- Generate a fresh key for every distinct request.
- Send the byte-identical body when retrying with the same key.
Example problem+json
{
"type": "https://nowgetitdone.com/docs/api/problems/idempotency-key-reused",
"title": "Idempotency-Key reused with a different request",
"status": 422,
"code": "idempotency_key_reused",
"request_id": "req_a1b2c3d4"
}Related
Idempotency-Key header required (idempotency_key_missing)
What the GetItDone API problem code idempotency_key_missing (HTTP 400) means, what causes it, and how to fix it.
A request with this Idempotency-Key is still in progress (idempotency_in_progress)
What the GetItDone API problem code idempotency_in_progress (HTTP 409) means, what causes it, and how to fix it.