googleapis / googleapis/google-api-python-client

HTTP 400 / preconditionFailed should be retried

Open
#2,723 1 comment 0 reactions 2 assignees Claimed by @ohmayr View on GitHub
priority: p3 type: bug
Dominant language
Python
Stars
8.9k
Forks
2.6k
Avg merge
2d 28m
Merged PRs (30d)
17

Description

#### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.