René's URL Explorer Experiment


Title: retry ChunkedEncodingError by default · Issue #235 · googleapis/python-api-core · GitHub

Open Graph Title: retry ChunkedEncodingError by default · Issue #235 · googleapis/python-api-core

X Title: retry ChunkedEncodingError by default · Issue #235 · googleapis/python-api-core

Description: Per psf/requests#4771, ChunkedEncodingError is a kind of transport-layer error. They don't classify it as a connection error because it's caused by a "misbehaving server", but in our case it's likely due to a transient issue somewhere in...

Open Graph Description: Per psf/requests#4771, ChunkedEncodingError is a kind of transport-layer error. They don't classify it as a connection error because it's caused by a "misbehaving server", but in our case it's like...

X Description: Per psf/requests#4771, ChunkedEncodingError is a kind of transport-layer error. They don't classify it as a connection error because it's caused by a "misbehaving server", but in ...

Opengraph URL: https://github.com/googleapis/python-api-core/issues/235

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"retry ChunkedEncodingError by default","articleBody":"Per https://github.com/psf/requests/issues/4771, ChunkedEncodingError is a kind of transport-layer error. They don't classify it as a connection error because it's caused by a \"misbehaving server\", but in our case it's likely due to a transient issue somewhere in the server stack. Retrying is likely to help.\r\n\r\n#### Stack trace\r\n\r\nSee: https://github.com/googleapis/python-bigquery-storage/issues/242\r\n\r\n```\r\n[POST]\r\nTraceback (most recent call last):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 696, in _update_chunk_length\r\n    self.chunk_left = int(line, 16)\r\n  ValueError: invalid literal for int() with base 16: b''\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 436, in _error_catcher\r\n    yield\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 763, in read_chunked\r\n    self._update_chunk_length()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 700, in _update_chunk_length\r\n    raise httplib.IncompleteRead(line)    \r\n  http.client.IncompleteRead: IncompleteRead(0 bytes read)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/requests/models.py\", line 751, in generate\r\n    for chunk in self.raw.stream(chunk_size, decode_content=True):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 571, in stream\r\n    for line in self.read_chunked(amt, decode_content=decode_content):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 792, in read_chunked\r\n    self._original_response.close()\r\n  File \"/opt/python3.9/lib/python3.9/contextlib.py\", line 135, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/urllib3/response.py\", line 454, in _error_catcher\r\n    raise ProtocolError(\"Connection broken: %r\" % e, e)\r\n  urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py\", line 2447, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py\", line 1952, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py\", line 1821, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/_compat.py\", line 39, in reraise\r\n    raise value\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py\", line 1950, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py\", line 1936, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/functions_framework/__init__.py\", line 152, in view_func\r\n    function(data, context)\r\n  File \"/workspace/common/functions.py\", line 61, in wrapper\r\n    raise e\r\n  File \"/workspace/common/functions.py\", line 54, in wrapper\r\n    response = wrapped_func(*args, **kwargs)\r\n  File \"/workspace/main.py\", line 533, in controller\r\n    status = create_files(contex_bdp)\r\n  File \"/workspace/main.py\", line 346, in create_files\r\n    for row in result:\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/page_iterator.py\", line 214, in _items_iter\r\n    for page in self._page_iter(increment=False):\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/page_iterator.py\", line 253, in _page_iter\r\n    page = self._next_page()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/page_iterator.py\", line 382, in _next_page\r\n    response = self._get_next_page_response()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/bigquery/table.py\", line 1541, in _get_next_page_response\r\n    return self.api_request(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/bigquery/client.py\", line 686, in _call_api\r\n    return call()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/retry.py\", line 285, in retry_wrapped_func\r\n    return retry_target(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/retry.py\", line 188, in retry_target\r\n    return target()\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/_http.py\", line 473, in api_request\r\n    response = self._make_request(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/_http.py\", line 337, in _make_request\r\n    return self._do_request(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/_http.py\", line 375, in _do_request\r\n    return self.http.request(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/auth/transport/requests.py\", line 482, in request\r\n    response = super(AuthorizedSession, self).request(\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/requests/sessions.py\", line 530, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/requests/sessions.py\", line 685, in send\r\n    r.content\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/requests/models.py\", line 829, in content\r\n    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''\r\n  File \"/layers/google.python.pip/pip/lib/python3.9/site-packages/requests/models.py\", line 754, in generate\r\n    raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))\r\n```\r\n","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2021-07-23T14:47:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/235/python-api-core/issues/235"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef464348-d12d-372c-16d2-b7d977ca084a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE47A:CD446:B53B9D:FF9DAC:6A4E87C0
html-safe-nonce0fa4f62c53d3aa0e83f9b8bb4290c377031ccda496decd51be9f0d25d6d29d7c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDdBOkNENDQ2OkI1M0I5RDpGRjlEQUM6NkE0RTg3QzAiLCJ2aXNpdG9yX2lkIjoiMTIxMDIzNDQ4MTk5NjEwNTY2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac73fa8b73df59f7f1de3ccd60a5a6b0c4d7135c8b04b989ce90f0facdcf7d29ed
hovercard-subject-tagissue:951646256
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/235/issue_layout
twitter:imagehttps://opengraph.githubassets.com/919263f614d791387fa7d1b5b56c7420fe081f4f5feb4d3bcd632b451502c4a4/googleapis/python-api-core/issues/235
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/919263f614d791387fa7d1b5b56c7420fe081f4f5feb4d3bcd632b451502c4a4/googleapis/python-api-core/issues/235
og:image:altPer psf/requests#4771, ChunkedEncodingError is a kind of transport-layer error. They don't classify it as a connection error because it's caused by a "misbehaving server", but in our case it's like...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametswast
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992456
octolytics-dimension-repository_nwogoogleapis/python-api-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992456
octolytics-dimension-repository_network_root_nwogoogleapis/python-api-core
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-api-core/issues/235#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-api-core%2Fissues%2F235
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-api-core%2Fissues%2F235
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-api-core
Reloadhttps://github.com/googleapis/python-api-core/issues/235
Reloadhttps://github.com/googleapis/python-api-core/issues/235
Reloadhttps://github.com/googleapis/python-api-core/issues/235
Please reload this pagehttps://github.com/googleapis/python-api-core/issues/235
googleapis https://github.com/googleapis
python-api-corehttps://github.com/googleapis/python-api-core
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-api-core
Fork 97 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-api-core
Star 144 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-api-core
Code https://github.com/googleapis/python-api-core
Issues 0 https://github.com/googleapis/python-api-core/issues
Pull requests 0 https://github.com/googleapis/python-api-core/pulls
Actions https://github.com/googleapis/python-api-core/actions
Projects https://github.com/googleapis/python-api-core/projects
Security and quality 0 https://github.com/googleapis/python-api-core/security
Insights https://github.com/googleapis/python-api-core/pulse
Code https://github.com/googleapis/python-api-core
Issues https://github.com/googleapis/python-api-core/issues
Pull requests https://github.com/googleapis/python-api-core/pulls
Actions https://github.com/googleapis/python-api-core/actions
Projects https://github.com/googleapis/python-api-core/projects
Security and quality https://github.com/googleapis/python-api-core/security
Insights https://github.com/googleapis/python-api-core/pulse
#237https://github.com/googleapis/python-api-core/pull/237
retry ChunkedEncodingError by defaulthttps://github.com/googleapis/python-api-core/issues/235#top
#237https://github.com/googleapis/python-api-core/pull/237
https://github.com/tseaver
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-api-core/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-api-core/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/tswast
tswasthttps://github.com/tswast
on Jul 23, 2021https://github.com/googleapis/python-api-core/issues/235#issue-951646256
psf/requests#4771https://github.com/psf/requests/issues/4771
googleapis/python-bigquery-storage#242https://github.com/googleapis/python-bigquery-storage/issues/242
tseaverhttps://github.com/tseaver
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-api-core/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-api-core/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.