René's URL Explorer Experiment


Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client · GitHub

Open Graph Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client

X Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client

Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

Open Graph Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

X Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

Opengraph URL: https://github.com/googleapis/google-api-python-client/pull/1802

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:060d032d-6b69-6da8-d09e-dc303bd18df2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F42:8119F:1A2637D:2245B6B:69645BD9
html-safe-nonce6cc9002b587a5f5f8dcb34e00c21b682803e0317b6512af35205659f890123d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjQyOjgxMTlGOjFBMjYzN0Q6MjI0NUI2Qjo2OTY0NUJEOSIsInZpc2l0b3JfaWQiOiI0ODkzNjMwOTkzOTExMjIzOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac62ad22f66dc727e199a15e1be357d0a54ca5eb715aca4056f8c9a82cdc432d7a
hovercard-subject-tagpull_request:937530259
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/googleapis/google-api-python-client/1802/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/40d814245463e4e32c493744b88c253bd81506eee2786addab897ca5a4df9600/googleapis/google-api-python-client/pull/1802
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/40d814245463e4e32c493744b88c253bd81506eee2786addab897ca5a4df9600/googleapis/google-api-python-client/pull/1802
og:image:altFor an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohn0312
hostnamegithub.com
expected-hostnamegithub.com
Nonebaa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id15749269
octolytics-dimension-repository_nwogoogleapis/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15749269
octolytics-dimension-repository_network_root_nwogoogleapis/google-api-python-client
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
release842eff1d11f899d02b6b3b98fa3ea4860e64b34e
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/google-api-python-client/pull/1802#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F1802
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fgoogle-api-python-client%2Fpull%2F1802
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=googleapis%2Fgoogle-api-python-client
Reloadhttps://github.com/googleapis/google-api-python-client/pull/1802
Reloadhttps://github.com/googleapis/google-api-python-client/pull/1802
Reloadhttps://github.com/googleapis/google-api-python-client/pull/1802
googleapis https://github.com/googleapis
google-api-python-clienthttps://github.com/googleapis/google-api-python-client
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Fork 2.5k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Star 8.7k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Code https://github.com/googleapis/google-api-python-client
Issues 158 https://github.com/googleapis/google-api-python-client/issues
Pull requests 22 https://github.com/googleapis/google-api-python-client/pulls
Discussions https://github.com/googleapis/google-api-python-client/discussions
Actions https://github.com/googleapis/google-api-python-client/actions
Projects 0 https://github.com/googleapis/google-api-python-client/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/googleapis/google-api-python-client/security
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
Insights https://github.com/googleapis/google-api-python-client/pulse
Code https://github.com/googleapis/google-api-python-client
Issues https://github.com/googleapis/google-api-python-client/issues
Pull requests https://github.com/googleapis/google-api-python-client/pulls
Discussions https://github.com/googleapis/google-api-python-client/discussions
Actions https://github.com/googleapis/google-api-python-client/actions
Projects https://github.com/googleapis/google-api-python-client/projects
Security https://github.com/googleapis/google-api-python-client/security
Insights https://github.com/googleapis/google-api-python-client/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/googleapis/google-api-python-client/pull/1802#issue-comment-box
john0312https://github.com/john0312
googleapis:mainhttps://github.com/googleapis/google-api-python-client/tree/main
john0312:fix-empty-last-chunkhttps://github.com/john0312/google-api-python-client/tree/fix-empty-last-chunk
fix: Empty last chunk case in resumable upload that is not a stream https://github.com/googleapis/google-api-python-client/pull/1802#top
john0312https://github.com/john0312
googleapis:mainhttps://github.com/googleapis/google-api-python-client/tree/main
john0312:fix-empty-last-chunkhttps://github.com/john0312/google-api-python-client/tree/fix-empty-last-chunk
Conversation 3 https://github.com/googleapis/google-api-python-client/pull/1802
Commits 2 https://github.com/googleapis/google-api-python-client/pull/1802/commits
Checks 4 https://github.com/googleapis/google-api-python-client/pull/1802/checks
Files changed https://github.com/googleapis/google-api-python-client/pull/1802/files
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
https://github.co/hiddenchars
https://github.com/googleapis/google-api-python-client/pull/{{ revealButtonHref }}
https://github.com/john0312
john0312https://github.com/john0312
May 16, 2022https://github.com/googleapis/google-api-python-client/pull/1802#issue-1237194784
#1801https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
https://github.com/john0312
fix: Empty last chunk case in resumable upload that is not a streamhttps://github.com/googleapis/google-api-python-client/pull/1802/commits/31e19678665be5d0c8473734e5004251060e0199
31e1967https://github.com/googleapis/google-api-python-client/pull/1802/commits/31e19678665be5d0c8473734e5004251060e0199
https://github.com/john0312
john0312https://github.com/john0312
code ownerhttps://github.com/googleapis/google-api-python-client/blob/024aa3782a35c569cfb94308bd61f785e37d5ae2/.github/CODEOWNERS#L8
May 16, 2022 13:51https://github.com/googleapis/google-api-python-client/pull/1802#event-6616361760
https://github.com/apps/product-auto-label
product-auto-labelhttps://github.com/apps/product-auto-label
size: s https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22size%3A%20s%22
May 16, 2022https://github.com/googleapis/google-api-python-client/pull/1802#event-6616362136
https://github.com/parthea
partheahttps://github.com/parthea
May 17, 2022https://github.com/googleapis/google-api-python-client/pull/1802#event-6624257338
https://github.com/Blessed4eva
Blessed4evahttps://github.com/Blessed4eva
Aug 18, 2022https://github.com/googleapis/google-api-python-client/pull/1802#issuecomment-1219011897
MediaUpload with has_stream() = False and an empty last chunk results in HTTP Error 400 #1801https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
https://github.com/Blessed4eva
Blessed4evahttps://github.com/Blessed4eva
Aug 18, 2022 https://github.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-1076665474
View reviewed changes https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/parthea
partheahttps://github.com/parthea
Oct 25, 2024https://github.com/googleapis/google-api-python-client/pull/1802#event-14875485082
https://github.com/chalmerlowe
Merge branch 'main' into fix-empty-last-chunkhttps://github.com/googleapis/google-api-python-client/pull/1802/commits/1f7f16033b37ff2686c3876eb83e3ca434d07407
1f7f160https://github.com/googleapis/google-api-python-client/pull/1802/commits/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/chalmerlowe
chalmerlowehttps://github.com/chalmerlowe
code ownerhttps://github.com/googleapis/google-api-python-client/blob/a1fd6f358f475a17612fe374502666581d571a8c/.github/CODEOWNERS#L8
December 11, 2025 16:32https://github.com/googleapis/google-api-python-client/pull/1802#event-21508770842
https://github.com/chalmerlowe
chalmerlowehttps://github.com/chalmerlowe
kokoro:force-run https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3Akokoro%3Aforce-run
Dec 11, 2025https://github.com/googleapis/google-api-python-client/pull/1802#event-21509003322
https://github.com/yoshi-kokoro
yoshi-kokorohttps://github.com/yoshi-kokoro
kokoro:force-run https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3Akokoro%3Aforce-run
Dec 11, 2025https://github.com/googleapis/google-api-python-client/pull/1802#event-21509014639
https://github.com/chalmerlowe
chalmerlowehttps://github.com/chalmerlowe
Dec 11, 2025 https://github.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3568557704
View reviewed changes https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
chalmerlowehttps://github.com/chalmerlowe
https://github.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3568557704
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
https://github.com/salomankevin655-beep
salomankevin655-beephttps://github.com/salomankevin655-beep
Dec 11, 2025 https://github.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3569007969
View reviewed changes https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/vchudnov-g
vchudnov-ghttps://github.com/vchudnov-g
Dec 11, 2025 https://github.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3569031000
View reviewed changes https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
googleapiclient/http.pyhttps://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407#diff-e492230da11e54b269c88852dc3b74a37cae746493f8d7ad91bc273ecf6b10fd
vchudnov-ghttps://github.com/vchudnov-g
Dec 11, 2025https://github.com/googleapis/google-api-python-client/pull/1802#discussion_r2611848521
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F1802
https://github.com/vchudnov-g
vchudnov-g https://github.com/vchudnov-g
https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/chalmerlowe
chalmerlowe https://github.com/chalmerlowe
https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/Blessed4eva
Blessed4eva https://github.com/Blessed4eva
https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://github.com/salomankevin655-beep
salomankevin655-beep https://github.com/salomankevin655-beep
https://github.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
size: s https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22size%3A%20s%22
MediaUpload with has_stream() = False and an empty last chunk results in HTTP Error 400 https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://github.com/googleapis/google-api-python-client/pull/1802
https://github.com/john0312
https://github.com/Blessed4eva
https://github.com/vchudnov-g
https://github.com/chalmerlowe
https://github.com/salomankevin655-beep
https://github.com/parthea
https://github.com/yoshi-kokoro
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.