fastify-multer icon indicating copy to clipboard operation
fastify-multer copied to clipboard

"body must be object" error with fastify V4

Open Tambouil opened this issue 3 years ago • 1 comments

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?

Tambouil avatar Aug 22 '22 08:08 Tambouil

try this https://stackoverflow.com/questions/72892620/fastify-multipart-form-data-error-body-must-be-object

emanuelet avatar Oct 06 '22 06:10 emanuelet