MetaMask / MetaMask/metamask-extension

[Bug]: Swap - Bitcoin - Entering a small amount throws error`Error cleaning up stream reader BodyStreamBuffer was aborted`

Open
#37,838 1 comment 0 reactions 0 assignees View on GitHub
area-swaps regression-RC-13.10.0 Sev3-low team-swaps-and-bridge type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

Entering a small amount for a Swap to Bitcoin throws error`Error cleaning up stream reader BodyStreamBuffer was aborted`

### Expected behavior

Error is handled so we don't overload Sentry

### Screenshots/Recordings

https://github.com/user-attachments/assets/3be999d0-c71a-4668-b474-c0b875a4d1d2

### Steps to reproduce

1. Start a Swap
2. Add Bitcoin as target token
3. Add small amount
4. See error in the console

### Error messages or log output

```shell

```

### Detection stage

During release testing

### Version

13.10.0

### Build type

None

### Browser

Chrome

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Chrome on macOS by starting a Swap, selecting Bitcoin as the target token, and entering a small amount. Check the console for the BodyStreamBuffer error and verify that the resulting error is handled without unnecessarily overloading Sentry.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.