Skip to content

Conversation

@eliotschu
Copy link

@eliotschu eliotschu commented Dec 6, 2025

This relates to...

Rationale

When a RetryAgent request has FormData body, currently since FormData passes (body && typeof body !== 'string' && !ArrayBuffer.isView(body) && isIterable(body)) it gets converted to BodyAsyncIterable which leads to extractBody() never being called on retried requests. Now FormData body is checked for and returned without manipulation.

Changes

Add a new check on the body using the existing isFormDataLike() utility function. Add a new unit test that references the issue number and runs the retry agent with FormData body.

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@eliotschu eliotschu marked this pull request as ready for review December 6, 2025 22:18
@eliotschu
Copy link
Author

@mcollina @metcoder95 Is there anything I need to do to keep this PR moving?

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

nothing, landing as CI is green

@codecov-commenter
Copy link

codecov-commenter commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.87%. Comparing base (7e5cb2d) to head (66d1508).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4692   +/-   ##
=======================================
  Coverage   92.87%   92.87%           
=======================================
  Files         109      109           
  Lines       33826    33828    +2     
=======================================
+ Hits        31415    31419    +4     
+ Misses       2411     2409    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@metcoder95
Copy link
Member

Can you rebase with main?

@eliotschu eliotschu force-pushed the fix--retryagent-formdata branch from ab54034 to 66d1508 Compare January 8, 2026 14:17
@eliotschu
Copy link
Author

@metcoder95 For sure, it should be up to date now

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.

4 participants