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 — fix: add a check for partial response data by cojenco · Pull Request #435 · googleapis/google-resumable-media-python

This repository was archived by the owner on May 6, 2026. It is now read-only.

Conversation

@cojenco

@cojenco cojenco commented May 14, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Handle corner cases of incomplete downloads with a 200 response code. These are rare cases when a download is prematurely terminated due to network stability or bandwidth throttling etc, but does not result in connection reset errors. The library will

  • (1) compare the # bytes read vs x-goog-stored-content-length header
  • (2) raise a retry-able ConnectionError in the aim to trigger a retry

Add more context to checksum mismatch error message that will help with debugging

  • bytes read from the download request (tracked within the Download object)
  • X-Goog-Stored-Content-Length value from the response header
  • X-Goog-Stored-Content-Encoding value from the response header

Fixes internal b/278011003

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cojenco
chore: update checksum mismatch error message with additional context
3fff6dd
@cojenco
cojenco requested review from a team May 14, 2024 21:41
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label May 14, 2024
@blunderbuss-gcf blunderbuss-gcf Bot assigned sydney-munro May 14, 2024
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/google-resumable-media-python API. label May 14, 2024
@cojenco cojenco unassigned sydney-munro May 14, 2024
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label May 14, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 14, 2024
@cojenco
trigger retry if lib detects incomplete read
307edd0
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label May 15, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 15, 2024
@cojenco
update condition and message
6e17fb4
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label May 15, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 15, 2024
@blunderbuss-gcf blunderbuss-gcf Bot assigned bajajneha27 May 15, 2024
@cojenco cojenco changed the title chore: update checksum mismatch error message with additional context fix: add a check for partial response data May 15, 2024
@cojenco
move check to before checksum mismatch errors
bc79406
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label May 16, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 16, 2024
@cojenco
cojenco requested a review from andrewsg May 30, 2024 23:12
andrewsg
andrewsg approved these changes May 30, 2024
View reviewed changes

@andrewsg andrewsg left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cojenco reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@danielduhh

danielduhh commented May 31, 2024

Copy link
Copy Markdown

Is this good to merge? @cojenco

cojenco reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cojenco
cojenco merged commit aaea392 into googleapis:main May 31, 2024
@release-please release-please Bot mentioned this pull request May 31, 2024
chore(main): release 2.7.1 #438
Merged
cojenco added a commit to cojenco/python-storage that referenced this pull request May 22, 2025
@cojenco
fix: import googleapis/google-resumable-media-python#435
3e3a7ad
@cojenco cojenco mentioned this pull request May 22, 2025
fix: add a check for partial response data googleapis/python-storage#1487
Merged
cojenco added a commit to googleapis/python-storage that referenced this pull request May 28, 2025
@cojenco
fix: add a check for partial response data (#1487)
7e0412a
* fix: import googleapis/google-resumable-media-python#435

* update expections as per #1283
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@andrewsg andrewsg andrewsg approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bajajneha27 bajajneha27

Labels

api: storage Issues related to the googleapis/google-resumable-media-python API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@cojenco @danielduhh @andrewsg @bajajneha27 @sydney-munro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.