Skip to content

feat(dx): add default message for missing handler#264

Merged
tschneidereit merged 4 commits intobytecodealliance:mainfrom
vados-cosmonic:feat=add-default-message-for-missing-handler
Aug 18, 2025
Merged

feat(dx): add default message for missing handler#264
tschneidereit merged 4 commits intobytecodealliance:mainfrom
vados-cosmonic:feat=add-default-message-for-missing-handler

Conversation

@vados-cosmonic
Copy link
Copy Markdown
Contributor

This commit adds a default message for the HTTP handler to the 500 that is returned when the event loop has run but the request is still not being responded to via the fetch-event integration.

In these cases, the user would normally receive a 500 with no information on what went wrong (e.g. if run with wasmtime serve), so with this PR we can do a little more to point towards the issue.

This commit adds a default message for the HTTP handler to the 500
that is returned when the event loop has run but the request is still
not being responded to via the fetch-event integration.

In these cases, the user would normally receive a 500 with no
information on what went wrong (e.g. if run with `wasmtime serve`), so
with this PR we can do a little more to point towards the issue.
@vados-cosmonic vados-cosmonic force-pushed the feat=add-default-message-for-missing-handler branch from bcea009 to f96f08c Compare August 12, 2025 17:40
Copy link
Copy Markdown
Member

@andreiltd andreiltd left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Copy Markdown
Member

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

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

I agree that this is a good thing to do. Implementation-wise, see my inline request.

Also, we used to have build-time validation for whether a handler was registered. Or rather, Fastly's js-compute-runtime did: see the commented code here. I don't entirely remember why I disabled it, but in any case, restoring this validation would be fantastic.

Copy link
Copy Markdown
Member

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

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

LGTM with the suggestion applied

Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
@tschneidereit tschneidereit merged commit 58b6042 into bytecodealliance:main Aug 18, 2025
6 checks passed
@tschneidereit
Copy link
Copy Markdown
Member

Thank you!

@vados-cosmonic vados-cosmonic deleted the feat=add-default-message-for-missing-handler branch August 18, 2025 16:06
@github-actions github-actions bot mentioned this pull request Oct 16, 2025
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.

3 participants