googleapis / googleapis/google-api-python-client

HTTP 400 / preconditionFailed should be retried

未关闭
#2,723 1 条评论 0 个 reaction 已指派 2 人 已被 @ohmayr 认领 在 GitHub 查看
priority: p3 type: bug
主要语言
Python
星标
8.9k
派生
2.6k
平均合并
2 天 28 分钟
30 天内合并 PR
17

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。