api
idempotency
ai_generated
true
Duplicate resource created — idempotency key not forwarded through proxy
ID: api/idempotency-key-not-propagated
85%Fix Rate
88%Confidence
4Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
Reverse proxy strips Idempotency-Key header, causing retries to create duplicates.
genericWorkarounds
-
93% success Ensure proxy passes Idempotency-Key header through
nginx: proxy_pass_header Idempotency-Key;
-
88% success Generate UUID-based idempotency key at the outermost client layer
headers['Idempotency-Key'] = str(uuid.uuid4())
Sources: https://brandur.org/idempotency-keys
Dead Ends
Common approaches that don't work:
-
Rely on client-side deduplication only
80% fail
Client cannot prevent server-side duplicates if the server never sees the idempotency key
-
Use request body hash as idempotency key
70% fail
Body hash changes if any field differs slightly