googleapis / googleapis/google-api-python-client

HTTP 400 / preconditionFailed should be retried

Đang mở
#2,723 1 bình luận 0 reaction 2 người được giao Được @ohmayr nhận Xem trên GitHub
priority: p3 type: bug
Ngôn ngữ chính
Python
Star
8.9k
Fork
2.6k
Merge trung bình
2 ngày 28 phút
Pull request đã merge (30 ngày)
17

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.