Skip to content

test(request): accept asynchronous body read errors - #403

Merged
yusukebe merged 1 commit into
mainfrom
fix-node-24-body-read-test
Sep 29, 2026
Merged

yusukebe merged 1 commit into
mainfrom
fix-node-24-body-read-test

Conversation

@usualoma

Copy link
Copy Markdown
Member

On Node.js v24.21.0, the partial-body recovery test fails because accessing req.body no longer throws synchronously; consuming the body rejects with an AbortError instead.

@usualoma

Copy link
Copy Markdown
Member Author

On the main branch before the fix, the test fails with the following result:

https://github.com/honojs/node-server/actions/runs/36354931734/job/108720665237?pr=402

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

@usualoma

Thanks! I'll merge this first and change the base of #402 to main.

@yusukebe
yusukebe merged commit fe7467c into main Sep 29, 2026
6 checks passed
@yusukebe
yusukebe deleted the fix-node-24-body-read-test branch September 29, 2026 03:59
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