Skip to content

refactor(storage): make onResponse async and improve retry error handling#24

Open
thiyaguk09 wants to merge 13 commits into
mainfrom
fix/resumable-upload-error-serialization
Open

refactor(storage): make onResponse async and improve retry error handling#24
thiyaguk09 wants to merge 13 commits into
mainfrom
fix/resumable-upload-error-serialization

Conversation

@thiyaguk09

Copy link
Copy Markdown
Owner

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the resumable upload logic to make onResponse asynchronous and introduces a helper function formatRetryError to standardize retry error formatting. The reviewer suggested refactoring formatRetryError to eliminate code duplication between the Error instance and generic object handling blocks.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread handwritten/storage/src/resumable-upload.ts Outdated
- Unify formatting of Errors and objects under a single block inside
formatRetryError to reduce code duplication.
- Ensure standard errors, GaxiosErrors, and custom errors with
empty/missing properties are correctly formatted.
Comment thread handwritten/storage/src/resumable-upload.ts Outdated
@thiyaguk09 thiyaguk09 changed the title refactor(storage): make onResponse async and improve error formatting for retry failures refactor(storage): make onResponse async and improve retry error handling Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants