Timeout error when trying to connect to the gmail api
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 22/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- api, networking
調査の方向性
The failure happens in quickstart.py at the build('gmail', 'v1', credentials=creds) call, which fetches the discovery document inside googleapiclient's _retrieve_discovery_doc before any token is written. Start by running the quickstart on a machine with a known-good network path to confirm whether the timeout reproduces, then check whether the discovery URL is reachable. Done means either a reproducible cause is documented, or the sample gets a clearer error or retry path. The thread has no maintainer reply, so confirm the scope with a maintainer first.
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
quickstart.py should work as intended, showing the user's labels as queried from the user's gmail account.
Actual Behavior
timeout error before creating the token.pickle file:
Traceback (most recent call last):
File "quickstart.py", line 48, in <module>
main()
File "quickstart.py", line 34, in main
service = build('gmail', 'v1', credentials=creds)
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/googleapiclient/discovery.py", line 224, in build
requested_url, discovery_http, cache_discovery, cache, developerKey)
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/googleapiclient/discovery.py", line 274, in _retrieve_discovery_doc
resp, content = http.request(actual_url)
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/httplib2/__init__.py", line 1994, in request
cachekey,
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/httplib2/__init__.py", line 1651, in _request
conn, request_uri, method, body, headers
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/httplib2/__init__.py", line 1557, in _conn_request
conn.connect()
File "/home/my_username/.pyenv/versions/3.6.4/lib/python3.6/site-packages/httplib2/__init__.py", line 1324, in connect
sock.connect((self.host, self.port))
socket.timeout: timed out
I tried with both of my system's python versions as well (2.7.17, 3.7.6), same error. I have reasons to believe it's something about my system, since it happens for three different python versions, I tested Java's quickstart code with the same credentials and it worked as expected, and python's version was working until last week, but don't know where to look to fix it, so, any help will be appreciated.
Steps to Reproduce the Problem
- Create a virtual env with python 3.6.4.
- Run
python quickstart.py
Specifications
- Python version (
python --version) 2.7.17, 3.6.4, 3.7.6 - OS (Mac/Linux/Windows) Linux Fedora 30
- 主要言語
- Python
- スター
- 1.4k
- フォーク
- 917
- 平均マージ
- 3分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleworkspace/python-samples のほかの issue
-
ايقاف البحث الأمن再び着手できるかも @sqrrrl が 400 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googleworkspace/python-samples#2434 · 担当者 1 名 ·
-
Slow Uploads using Google Drive API with Python再び着手できるかも @sqrrrl が 740 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googleworkspace/python-samples#1852 · コメント 1 件 · 担当者 1 名 ·
-
403 error from google after a few successful runs of my code再び着手できるかも @vinay-google が 912 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googleworkspace/python-samples#1424 · 担当者 1 名 ·
-
How to see the progress of files which is getting uploaded再び着手できるかも @vinay-google が 928 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googleworkspace/python-samples#1404 · 担当者 1 名 ·
-
Phyton Samples再び着手できるかも @PierrickVoulet が 975 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googleworkspace/python-samples#1279 · 担当者 1 名 ·
googleworkspace/python-samples の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
canonical/paas-charm#407 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
メンテナーはふだん 1 日以内に返信
-
enhancement tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
`read_nexus` entry point points to a function that no longer exists対応中かも @RubelMozumder が今日担当しました。 オープンannotator bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
FAIRmat-NFDI/pynxtools#876 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retrying対応中かも @yipinghuang1991 が今日担当しました。 オープンcomp/agent P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#156837 ·
メンテナーはふだん 1 日以内に返信