googleapis / googleapis/google-api-python-client

HTTP 400 / preconditionFailed should be retried

Aperta
#2,723 1 commento 0 reazioni 2 assegnatari Rivendicata da @ohmayr Vedi su GitHub
priority: p3 type: bug
Lingua principale
Python
Stelle
8.9k
Fork
2.6k
Merge medio
2g 28m
PR unite (30g)
17

Descrizione

#### Environment details

- OS type and version: MacOS 26
- Python version: Python 3.12.11
- pip version: uv
- `google-api-python-client` version: n/a

#### Steps to reproduce

Intermittent HTTP 400 / preconditionFailed on Gmail API. A casual web search suggests that other Google APIs also issue preconditionFailed. At least in my use case, retrying with exponential backoff always works. I cannot assert that in all use cases that this is the correct behavior.

#### Code example

N/A

#### Stack trace

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.