Connection aborted in google/oauth2 affecting firebase
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从 google/oauth2/_client.py 中的 _token_endpoint_request_no_throw 和 _perform_request 开始,使用 traceback 中 firebase_admin/messaging.py 的调用路径来了解失败原因。重现 token 刷新失败并检查可重试错误的处理;当 Connection aborted 被重试行为覆盖且相关测试通过时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Connection aborted didn't included in retryable list and any firebase API calls fails frequently.
Traceback (most recent call last):
File "/usr/src/app/notifications/services/notification_service/providers/mobile.py", line 94, in _send_notification
firebase.send(fb_message, app=firebase_app)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/messaging.py", line 121, in send
return _get_messaging_service(app).send(message, dry_run)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/messaging.py", line 411, in send
resp = self._client.body(
File "/usr/local/lib/python3.10/site-packages/firebase_admin/_http_client.py", line 131, in body
resp = self.request(method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/_http_client.py", line 118, in request
resp = self._session.request(method, self.base_url + url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/google/auth/transport/requests.py", line 577, in request
self.credentials.refresh(auth_request)
File "/usr/local/lib/python3.10/site-packages/google/oauth2/service_account.py", line 445, in refresh
access_token, expiry, _ = _client.jwt_grant(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 308, in jwt_grant
response_data = _token_endpoint_request(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 268, in _token_endpoint_request
response_status_ok, response_data, retryable_error = _token_endpoint_request_no_throw(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 215, in _token_endpoint_request_no_throw
request_succeeded, response_data, retryable_error = _perform_request()
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 191, in _perform_request
response = request(
File "/usr/local/lib/python3.10/site-packages/google/auth/transport/requests.py", line 192, in __call__
raise new_exc from caught_exc
google.auth.exceptions.TransportError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
- 主要语言
- Python
- 星标
- 1.2k
- 派生
- 359
- 平均合并
- 3 天 9 小时
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-python 的其他 Issue
-
api: remoteconfig
难度 2/5 1-3 小时 新手友好度 75/100
firebase/firebase-admin-python#957 · 1 条评论 ·
-
api: database type: feature request
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 4/5 3-5 天 新手友好度 45/100
firebase/firebase-admin-python#978 · 1 条评论 ·
-
[FR] Support VERIFY_AND_CHANGE_EMAIL in generate_email_action_link (parity with firebase-admin-node) 未关闭api: auth
firebase/firebase-admin-python#949 · 2 条评论 · 1 个 reaction · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 43/100
firebase/firebase-admin-python#945 · 1 条评论 · 1 个 reaction ·
查看 firebase/firebase-admin-python 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·