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 — upload file to cloud storage stuck randomly · Issue #1563 · googleapis/google-cloud-python

upload file to cloud storage stuck randomly #1563

New issue
Copy link
New issue
Copy link
Closed
Closed
upload file to cloud storage stuck randomly#1563
Copy link
Assignees
dhermes
Labels
api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@matrixl
matrixl
opened on Mar 3, 2016
Issue body actions

My program will stuck randomly when call blob.upload_from_filename function, most of the time it happend to a pdf file (it also happened to small size pdf file). with version 0.10.1

client = storage.Client.from_service_account_json(app.config["GCS_KEYFILE"], app.config["GCS_PROJECTID"])
bucket = client.get_bucket(app.config["GCS_BUCKETID"])
blob = bucket.blob(remote_path)
blob.upload_from_filename(filename=local_path)

Activity

  1. dhermes commented on Mar 3, 2016

    @dhermes
    dhermes
    on Mar 3, 2016
    Contributor
    More actions

    Are you using a threaded environment? Have you killed the process every time or waited for a stacktrace?

  2. matrixl commented on Mar 3, 2016

    @matrixl
    matrixl
    on Mar 3, 2016
    Author
    More actions

    It's a python flask application, so it is a threaded environment. the program will wait for a stacktrace.

  3. dhermes commented on Mar 3, 2016

    @dhermes
    dhermes
    on Mar 3, 2016
    Contributor
    More actions

    I've experienced this before. httplib2 is not threadsafe and I've been able to reproduce long waits before a strange SSL error (due to threads getting crossed).

    Your easiest solution for now is just to create a Client / Connection as a thread local. @jonparrott has been working to make this easier though for the long term

  4. matrixl commented on Mar 3, 2016

    @matrixl
    matrixl
    on Mar 3, 2016
    Author
    More actions

    Great, thanks for your help!

  5. dhermes
    added
    api: storageIssues related to the Cloud Storage API.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Mar 3, 2016
  6. dhermes commented on Mar 3, 2016

    @dhermes
    dhermes
    on Mar 3, 2016
    Contributor
    More actions

    I'm going to close this and just point to #1214. Thanks for reporting, it's good to get a sense of priorities.

    If it turns out that this wasn't the issue, ping this issue and we can re-open and discuss.

  7. dhermes
    closed this as completedon Mar 3, 2016
  8. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  9. parthea
    added a commit that references this issue on Sep 22, 2023

    docs: add samples from python-docs-samples/tasks (#36)

    19a15ff
  10. parthea
    added 2 commits that reference this issue on Nov 26, 2025

    fix: retry token request on retryable status code (#1563)

    c05713d

    feat: Add support for asynchronous `AuthorizedSession` api (#1577)

    0d38ef8
  11. parthea
    added a commit that references this issue on Mar 2, 2026

    Chore: Remove Py3.7+3.8 Support (#1573)

    This issue will close once commit 2a0a5c8 is merged into the 'main' branch.
    2a0a5c8
  12. parthea
    added a commit that references this issue on Mar 9, 2026

    chore(python): Add Python 3.14 to python post processor image (#1563)

    3dfec7d
  13. parthea
    added a commit that references this issue on Apr 1, 2026

    docs: add message to remove default model for version 3.0 (#1563)

    ef0c09a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: storageIssues related to the Cloud Storage API.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.