Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage: ECONNRESET raised on blob.patch() #4353

Closed
mathewcohle opened this issue Nov 7, 2017 · 1 comment
Closed

Storage: ECONNRESET raised on blob.patch() #4353

mathewcohle opened this issue Nov 7, 2017 · 1 comment
Assignees
Labels
api: storage Issues related to the Cloud Storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. status: duplicate Duplicate. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@mathewcohle
Copy link

Traceback:

  File ...
    blob.patch()
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/storage/_helpers.py", line 147, in patch
    query_params={'projection': 'full'}, _target_object=self)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/_http.py", line 290, in api_request
    headers=headers, target_object=_target_object)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/_http.py", line 183, in _make_request
    return self._do_request(method, url, headers, data, target_object)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/_http.py", line 212, in _do_request
    url=url, method=method, headers=headers, data=data)
  File "/usr/local/lib/python2.7/dist-packages/google/auth/transport/requests.py", line 179, in request
    method, url, data=data, headers=request_headers, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 658, in send
    r.content
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 823, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 748, in generate
    raise ChunkedEncodingError(e)
ChunkedEncodingError: ('Connection broken: error("(104, \\'ECONNRESET\\')",)', error("(104, 'ECONNRESET')",))

where blob is instance of <google.cloud.storage.blob.Blob>. This happens occasionally when patching blob metadata, have not found how to reproduce reliably.

Setup:

$ python --version
Python 2.7.12

$ uname -a
Linux moby 4.9.49-moby #1 SMP Wed Sep 27 23:17:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ pip show show google-cloud
Name: google-cloud
Version: 0.27.0
Summary: API Client library for Google Cloud
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google Cloud Platform
Author-email: googleapis-publisher@google.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: google-cloud-bigquery, google-cloud-bigtable, google-cloud-core, google-cloud-datastore, google-cloud-dns, google-cloud-error-reporting, google-cloud-language, google-cloud-logging, google-cloud-monitoring, google-cloud-pubsub, google-cloud-resource-manager, google-cloud-runtimeconfig, google-cloud-spanner, google-cloud-speech, google-cloud-storage, google-cloud-translate, google-cloud-videointelligence, google-cloud-vision

$ pip freeze | grep requests
requests==2.18.4

$ pip freeze | grep urllib3
urllib3==1.22
@chemelnucfin chemelnucfin added api: storage Issues related to the Cloud Storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. status: acknowledged labels Nov 7, 2017
@chemelnucfin chemelnucfin added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Jan 9, 2018
@chemelnucfin chemelnucfin self-assigned this Jan 11, 2018
@tseaver tseaver added the status: duplicate Duplicate. label Feb 27, 2018
@tseaver
Copy link
Contributor

tseaver commented Feb 27, 2018

This bug is the same as #4420, which was closed with the resolution that we should not try to catch requests.ConnectionError / requests.exceptions.ConnectionError.

@tseaver tseaver closed this as completed Feb 27, 2018
parthea pushed a commit that referenced this issue Oct 21, 2023
…n-docs-samples#4360)

* fix(translate): fix a broken test

fixes #4353

* use uuid

* fix builds
parthea pushed a commit that referenced this issue Oct 21, 2023
…n-docs-samples#4360)

* fix(translate): fix a broken test

fixes #4353

* use uuid

* fix builds
parthea pushed a commit that referenced this issue Oct 21, 2023
🤖 I have created a release \*beep\* \*boop\* 
---
## [2.0.0](https://github.com/googleapis/python-automl/compare/v1.0.1...v2.0.0) (2020-09-16)


### ⚠ BREAKING CHANGES

* move to microgen (#61)

### Features

* move to microgen ([#61](https://github.com/googleapis/python-automl/issues/61)) ([009085e](https://github.com/googleapis/python-automl/commit/009085e0a82d1d7729349746c2c8954d5d60e0a9))


### Bug Fixes

* **translate:** fix a broken test [([#4360](https://github.com/googleapis/python-automl/issues/4360))](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4360) ([5f7d141](https://github.com/googleapis/python-automl/commit/5f7d141afe732acf7458a9ac98618e93baa93d38)), closes [#4353](https://github.com/googleapis/python-automl/issues/4353)
* `update_column_spec` typo in TablesClient docstring ([#18](https://github.com/googleapis/python-automl/issues/18)) ([9feb4cc](https://github.com/googleapis/python-automl/commit/9feb4cc5e04a01a4199da43400457cca6c0bfa05)), closes [#17](https://github.com/googleapis/python-automl/issues/17)
* update retry configs ([#44](https://github.com/googleapis/python-automl/issues/44)) ([7df9059](https://github.com/googleapis/python-automl/commit/7df905910b86721a6ee3a3b6c916a4f8e27d0aa7))


### Documentation

* add cancel operation sample ([abc5070](https://github.com/googleapis/python-automl/commit/abc507005d5255ed5adf2c4b8e0b23042a0bdf47))
* add samples from tables/automl ([#54](https://github.com/googleapis/python-automl/issues/54)) ([d225a5f](https://github.com/googleapis/python-automl/commit/d225a5f97c2823218b91a79e77d3383132875231)), closes [#2090](https://github.com/googleapis/python-automl/issues/2090) [#2100](https://github.com/googleapis/python-automl/issues/2100) [#2102](https://github.com/googleapis/python-automl/issues/2102) [#2103](https://github.com/googleapis/python-automl/issues/2103) [#2101](https://github.com/googleapis/python-automl/issues/2101) [#2110](https://github.com/googleapis/python-automl/issues/2110) [#2115](https://github.com/googleapis/python-automl/issues/2115) [#2150](https://github.com/googleapis/python-automl/issues/2150) [#2145](https://github.com/googleapis/python-automl/issues/2145) [#2203](https://github.com/googleapis/python-automl/issues/2203) [#2340](https://github.com/googleapis/python-automl/issues/2340) [#2337](https://github.com/googleapis/python-automl/issues/2337) [#2336](https://github.com/googleapis/python-automl/issues/2336) [#2339](https://github.com/googleapis/python-automl/issues/2339) [#2338](https://github.com/googleapis/python-automl/issues/2338) [#2276](https://github.com/googleapis/python-automl/issues/2276) [#2257](https://github.com/googleapis/python-automl/issues/2257) [#2424](https://github.com/googleapis/python-automl/issues/2424) [#2407](https://github.com/googleapis/python-automl/issues/2407) [#2501](https://github.com/googleapis/python-automl/issues/2501) [#2459](https://github.com/googleapis/python-automl/issues/2459) [#2601](https://github.com/googleapis/python-automl/issues/2601) [#2523](https://github.com/googleapis/python-automl/issues/2523) [#2005](https://github.com/googleapis/python-automl/issues/2005) [#3033](https://github.com/googleapis/python-automl/issues/3033) [#2806](https://github.com/googleapis/python-automl/issues/2806) [#3750](https://github.com/googleapis/python-automl/issues/3750) [#3571](https://github.com/googleapis/python-automl/issues/3571) [#3929](https://github.com/googleapis/python-automl/issues/3929) [#4022](https://github.com/googleapis/python-automl/issues/4022) [#4127](https://github.com/googleapis/python-automl/issues/4127)
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. status: duplicate Duplicate. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants