Skip to content

Conversation

@thongdoan
Copy link
Contributor

Fix unhandled 'error' event in createStreamBody, which caused Hono server to crash when attempting to serve an existing file without read permission. Now, such errors are properly handled to prevent server crashes.

thongdoan and others added 3 commits September 20, 2025 11:49
Fix unhandled 'error' event in createStreamBody, which caused Hono server to crash when attempting to serve an existing file without read permission. Now, such errors are properly handled to prevent server crashes.
@yusukebe yusukebe changed the title Add error handling in createStreamBody fix(serve-static): Add error handling in createStreamBody Sep 22, 2025
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

Hi @thongdoan

Thank you for the PR. I added the test myself. Looks good. I'll merge this and release a new version.

@yusukebe yusukebe merged commit 0ee7ce1 into honojs:main Sep 22, 2025
5 checks passed
@thongdoan
Copy link
Contributor Author

Thank you for merging and also for adding the test

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