-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic in Deno Flash server #15813
Labels
bug
Something isn't working correctly
Comments
I think this error happens when I don't await the request body in the handler. // panic
handler(request) {
request.text();
return new Response("Hello world");
}
// no panic
async handler(request) {
await request.text();
return new Response("Hello world");
} |
Closed
I am working on this. I will put up a pr shortly. |
This bug also surfaces when attempting to read the request headers. |
18 tasks
Thanks for checking @sant123, I'm gonna close this issue for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deno Flash server crashes when it serves simple requests. Here is the full content of my
src/main.ts
file:This is the request I send to my server from a browser:
And this is the server console output. Interestingly, the browser receives the response before the server crashes.
The text was updated successfully, but these errors were encountered: