Skip to content

fix(core): use getResumeUri guidance in failed upload exceptions - #9874

Open
nidhiii-27 wants to merge 2 commits into
mainfrom
fix/storage-uploader-error-message
Open

nidhiii-27 wants to merge 2 commits into
mainfrom
fix/storage-uploader-error-message

Conversation

@nidhiii-27

@nidhiii-27 nidhiii-27 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

ResumableUploader::upload() and StreamableUploader::upload() now throw exceptions whose message directs callers to retrieve the resume URI via getResumeUri(), and StreamableUploader::upload() omits the previous exception argument on upload failure to match ResumableUploader::upload(). Existing upload execution, exception types, status codes, and programmatic resumption via getResumeUri() remain unchanged. Updated unit test coverage in Core/tests/Unit/Upload/ResumableUploaderTest.php and Core/tests/Unit/Upload/StreamableUploaderTest.php.

ResumableUploader::upload() and StreamableUploader::upload() now throw exceptions whose message directs callers to retrieve the resume URI via getResumeUri(). Existing upload execution, exception types, status codes, and programmatic resumption via getResumeUri() remain unchanged. Updated unit test coverage in Core/tests/Unit/Upload/ResumableUploaderTest.php and Core/tests/Unit/Upload/StreamableUploaderTest.php.

[Generated-by: AI]
@nidhiii-27
nidhiii-27 marked this pull request as ready for review November 29, 2026 16:45
@nidhiii-27
nidhiii-27 requested a review from a team as a code owner November 29, 2026 16:45
@nidhiii-27 nidhiii-27 self-assigned this Nov 29, 2026
@nidhiii-27 nidhiii-27 added storage-bug-immunity Generated by storage-bug-immunity skill ai-generated Pull Request generated by AI labels Nov 29, 2026
Comment thread Core/src/Upload/StreamableUploader.php Resolved
… ResumableUploader

StreamableUploader::upload() now throws its upload failure GoogleException without a previous exception, matching ResumableUploader::upload(). Exception type, message, status code, and programmatic resumption via getResumeUri() remain unchanged. Updated unit test coverage in Core/tests/Unit/Upload/StreamableUploaderTest.php and Core/tests/Unit/Upload/ResumableUploaderTest.php.

[Generated-by: AI]
@nidhiii-27 nidhiii-27 changed the title fix(core): use getResumeUri guidance in failed upload exception messages fix(core): use getResumeUri guidance in failed upload exceptions Dec 1, 2026

This branch has not been deployed

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

Labels

ai-generated Pull Request generated by AI storage-bug-immunity Generated by storage-bug-immunity skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants