How to Fix Fastify 'Unsupported Media Type: application/x-www-form-urlencoded'
I’ll introduce how to fix the Unsupported Media Type: application/x-www-form-urlencoded
error in Fastify.
npm install fastify-formbody --save
In app.js, just specify fastify-formbody in fastify.register and you’re all set.
fastify.register(require('fastify-formbody'))
That’s all from the Gemba on fixing Unsupported Media Type: application/x-www-form-urlencoded
in Fastify.