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

"body must be object" error with fastify V4 #27

Open
Tambouil opened this issue Aug 22, 2022 · 1 comment
Open

"body must be object" error with fastify V4 #27

Tambouil opened this issue Aug 22, 2022 · 1 comment

Comments

@Tambouil
Copy link

Tambouil commented Aug 22, 2022

Hi,

When using the preHandler hook, I always get a "body must be object" error with fastify V4 :

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "body must be object"
}

Do you know an easy way to fix this?

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

No branches or pull requests

2 participants