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

The new version of @bull-board/h3 will report an error H3Error: HTTP method is not allowed. #757

Closed
oevery opened this issue May 28, 2024 · 2 comments · May be fixed by https-quantumblockchainai-atlassian-net/ossinsight#756

Comments

@oevery
Copy link

oevery commented May 28, 2024

the new version add readbody, but in nuxt (or nitro and h3), using readBody within a GET request will throw a error.

this is the doc: https://nuxt.com/docs/guide/directory-structure/server#body-handling

image

@felixmosh
Copy link
Owner

Hi @oevery thank you for reporting this issue.
Where there is Get request with readbody?
Will you be able to submit a PR?

@oevery
Copy link
Author

oevery commented May 28, 2024

Hi @oevery thank you for reporting this issue. Where there is Get request with readbody? Will you be able to submit a PR?嗨,@oevery感谢您报告此问题。 哪里有 readbody 的 Get 请求? 你能提交 PR 吗?

https://github.com/felixmosh/bull-board/blob/e59360eef967253970436b281937ef2294434914/packages/h3/src/H3Adapter.ts#L178-#L188

In this case, readbody is read for each request, so it's just a matter of keeping them separate.

It's night time in my country, maybe I can get up tomorrow and submit a pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants