GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Storage: ECONNRESET raised on blob.patch() · Issue #4353 · googleapis/google-cloud-python

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Storage: ECONNRESET raised on blob.patch()#4353
Copy link
Assignees
tseaver
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: duplicateDuplicate.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@mathewcohle
mathewcohle
opened on Nov 7, 2017
Issue body actions

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: [email protected]
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

Activity

  1. chemelnucfin
    added
    api: storageIssues related to the Cloud Storage API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    status: acknowledged
    on Nov 7, 2017
  2. lukesneeringer
    removed
    status: acknowledged
    on Nov 8, 2017
  3. chemelnucfin
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 9, 2018
  4. chemelnucfin
    self-assigned this
    on Jan 11, 2018
  5. tseaver
    added
    status: duplicateDuplicate.
    on Feb 27, 2018
  6. tseaver commented on Feb 27, 2018

    @tseaver
    tseaver
    on Feb 27, 2018
    Contributor
    More actions

    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.

  7. tseaver
    closed this as completedon Feb 27, 2018
  8. theacodes
    unassigned
    chemelnucfin
    on Sep 28, 2018
  9. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  10. parthea
    added 3 commits that reference this issue on Oct 21, 2023

    fix(translate): fix a broken test [(#4360)](GoogleCloudPlatform/pytho…

    This issue will close once commit 655bc03 is merged into the 'main' branch.
    655bc03

    fix(translate): fix a broken test [(#4360)](GoogleCloudPlatform/pytho…

    This issue will close once commit b124685 is merged into the 'main' branch.
    b124685

    chore: release 2.0.0 (#68)

    This issue will close once commit 629a2a6 is merged into the 'main' branch.
    629a2a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: duplicateDuplicate.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.