NuxtN
Nuxt3y ago
Fran

Problem with readBody in production

In localhost, read the body is simple with readBody, it returns an object with body params. But in production, cloudflare workers, it returns a string and crash the request, it throw a 400 because can't receive body's data. The error 400 is throw because we code it to throw when params not receive.
Was this page helpful?