Title: ConnectionResetError missing in retry · Issue #558 · googleapis/google-api-python-client · GitHub
Open Graph Title: ConnectionResetError missing in retry · Issue #558 · googleapis/google-api-python-client
X Title: ConnectionResetError missing in retry · Issue #558 · googleapis/google-api-python-client
Description: Here's a callstack we just got and it wasn't retried: File "/pyenv/lib/python3.6/site-packages/googleapiclient/http.py", line 841, in execute method=str(self.method), body=self.body, headers=self.headers) File "/pyenv/lib/python3.6/site-...
Open Graph Description: Here's a callstack we just got and it wasn't retried: File "/pyenv/lib/python3.6/site-packages/googleapiclient/http.py", line 841, in execute method=str(self.method), body=self.body, headers=self.h...
X Description: Here's a callstack we just got and it wasn't retried: File "/pyenv/lib/python3.6/site-packages/googleapiclient/http.py", line 841, in execute method=str(self.method), body=self.bo...
Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/558
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConnectionResetError missing in retry","articleBody":"Here's a callstack we just got and it wasn't retried:\r\n\r\n```\r\nFile \"/pyenv/lib/python3.6/site-packages/googleapiclient/http.py\", line 841, in execute\r\n method=str(self.method), body=self.body, headers=self.headers)\r\nFile \"/pyenv/lib/python3.6/site-packages/googleapiclient/http.py\", line 165, in _retry_request\r\n resp, content = http.request(uri, method, *args, **kwargs)\r\nFile \"/pyenv/lib/python3.6/site-packages/oauth2client/transport.py\", line 175, in new_request\r\n redirections, connection_type)\r\nFile \"/pyenv/lib/python3.6/site-packages/oauth2client/transport.py\", line 282, in request\r\n connection_type=connection_type)\r\nFile \"/pyenv/lib/python3.6/site-packages/httplib2/__init__.py\", line 1514, in request\r\n (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)\r\nFile \"/pyenv/lib/python3.6/site-packages/httplib2/__init__.py\", line 1264, in _request\r\n (response, content) = self._conn_request(conn, request_uri, method, body, headers)\r\nFile \"/pyenv/lib/python3.6/site-packages/httplib2/__init__.py\", line 1217, in _conn_request\r\n response = conn.getresponse()\r\nFile \"/pyenv/lib/python3.6/site-packages/aws_xray_sdk/core/recorder.py\", line 374, in record_subsegment\r\n return_value = wrapped(*args, **kwargs)\r\nFile \"/usr/local/lib/python3.6/http/client.py\", line 1331, in getresponse\r\n response.begin()\r\nFile \"/usr/local/lib/python3.6/http/client.py\", line 297, in begin\r\n version, status, reason = self._read_status()\r\nFile \"/usr/local/lib/python3.6/http/client.py\", line 258, in _read_status\r\n line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\r\nFile \"/usr/local/lib/python3.6/socket.py\", line 586, in readinto\r\n return self._sock.recv_into(b)\r\nFile \"/usr/local/lib/python3.6/ssl.py\", line 1009, in recv_into\r\n return self.read(nbytes, buffer)\r\nFile \"/usr/local/lib/python3.6/ssl.py\", line 871, in read\r\n return self._sslobj.read(len, buffer)\r\nFile \"/usr/local/lib/python3.6/ssl.py\", line 631, in read\r\n v = self._sslobj.read(len, buffer)\r\nConnectionResetError: [Errno 104] Connection reset by peer\r\n```\r\n\r\nlooks like a python3 support issue, this case is covered in py2 by socket.error. In my implementation I've centralized this logic here: https://github.com/thehesiod/google-api-python-client/blob/thehesiod/batch-retries/googleapiclient/http.py#L143","author":{"url":"https://github.com/thehesiod","@type":"Person","name":"thehesiod"},"datePublished":"2018-08-16T23:45:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/558/google-api-python-client/issues/558"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b8fef388-f36f-c6b2-4f77-cce10810c793 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A54A:27D6AB:14388:18B51:6A4D7CEC |
| html-safe-nonce | 44f663498ca55656c5541f67e8a9bee9dc5017c520e1ec72fa7d00b0224f807e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTRBOjI3RDZBQjoxNDM4ODoxOEI1MTo2QTREN0NFQyIsInZpc2l0b3JfaWQiOiI0ODQ4OTMxNjA0MDk1OTI1NDg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 104b4c0daa299e19e8fceca52b74f8ba8e38ec8a25cdb2b14a0125dc0d6a7b27 |
| hovercard-subject-tag | issue:351405864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-api-python-client/558/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84adfd9548619e7586cae65bc36f462d35854ea1453b05d5748e09a207c44edb/googleapis/google-api-python-client/issues/558 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84adfd9548619e7586cae65bc36f462d35854ea1453b05d5748e09a207c44edb/googleapis/google-api-python-client/issues/558 |
| og:image:alt | Here's a callstack we just got and it wasn't retried: File "/pyenv/lib/python3.6/site-packages/googleapiclient/http.py", line 841, in execute method=str(self.method), body=self.body, headers=self.h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thehesiod |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 15749269 |
| octolytics-dimension-repository_nwo | googleapis/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15749269 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-api-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width