Skip to content
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

Forms not working in deno with dev server #229

Open
cotyhamilton opened this issue Oct 2, 2024 · 0 comments
Open

Forms not working in deno with dev server #229

cotyhamilton opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cotyhamilton
Copy link

What version of HonoX are you using?

0.1.25

What steps can reproduce the bug?

Requires Deno 2

deno upgrade
deno upgrade rc

Repro: https://github.com/cotyhamilton/deno-honox

deno install
deno task dev

Vist http://localhost:5173/form and submit form

Additionally you can follow the instructions in the README and create form route to reproduce manually

What is the expected behavior?

The form is submitted successfully

What do you see instead?

The server errors with the message Missing content type in console and Internal Server Error 500 response returned to the client

Additional information

This only happens when running the dev server. If you build and serve the output the form submits successfully

deno task build # deno run -A npm:vite build
deno task preview # (cd dist && deno serve -R index.js)
@cotyhamilton cotyhamilton added the bug Something isn't working label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant