pchickey opened PR #10645 from bytecodealliance:pch/wasmtime_serve_500 to bytecodealliance:main:
Without this 500 response, hyper closes the connection without sending a response. Sending a 500 is better http hygiene.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
pchickey requested dicej for a review on PR #10645.
pchickey requested wasmtime-core-reviewers for a review on PR #10645.
pchickey updated PR #10645.
pchickey requested wasmtime-default-reviewers for a review on PR #10645.
alexcrichton submitted PR review:
Mind adding a test around here for this as well?
Also would it perhaps make sense to render the error in the response too?
pchickey updated PR #10645.
pchickey commented on PR #10645:
CI revealed where existing tests covered the old behavior, so I updated that, rather than adding a test.
I don't think anyone should be using wasmtime-cli as a production server, but inevitably someone will, and in that case I don't want to put the crash information in the 500 response in case it gets exposed to untrusted users.
pchickey has enabled auto merge for PR #10645.
pchickey merged PR #10645.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Shouldn't this at show a basic html page with a user visible message that an internal server error happened like Apache and Nginx do? A completely empty page is even more confusing for end users than the browser telling the user that the connection got closed.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Opened https://github.com/bytecodealliance/wasmtime/pull/10851
Last updated: Dec 06 2025 at 07:03 UTC