User Authentication (Post Request For JTW) Returns statusCode 400

Hello,

When I initiate a JWT token request, I get the following message.
I am using Postman.

I have Strapi version 3.5.2

“packages”: {
“”: {
“version”: “0.1.0”,
“license”: “MIT”,
“dependencies”: {
“knex”: “0.21.18”,
“mongoose”: “^5.11.15”,
“mysql”: “2.18.1”,
“strapi”: “3.5.2”,
“strapi-admin”: “3.5.2”,
“strapi-connector-bookshelf”: “3.5.2”,
“strapi-plugin-content-manager”: “3.5.2”,
“strapi-plugin-content-type-builder”: “3.5.2”,
“strapi-plugin-email”: “3.5.2”,
“strapi-plugin-upload”: “3.5.2”,
“strapi-plugin-users-permissions”: “3.5.2”,
“strapi-utils”: “3.5.2”
},
“engines”: {
“node”: “>=10.16.0 <=14.x.x”,
“npm”: “^6.0.0”
}
},

I am not too sure why I am getting the statusCode 400.
Appreciate you help.

When I look at my CLI, these are the output I get.

@n1849778
Because you are sending data as text with text/plain content type.
image

Click on it and change it to json, it will add the necessary application/json content type and everything will work.

1 Like