POST : error 400 - Unexpected token (even using PostMan)

System Information
  • Strapi Version: 4.1.0.
  • Operating System: windows 10 - Chrome
  • Database: Strapi
  • Node Version: 16.13.2
  • NPM Version: 8.1.2
  • Yarn Version: no-using yarn

Hello,
I can’t manage POSTing datas into my Strapi. With REACT (axios) it doesn’t work, so I try with PostMan. No success. :frowning:
Could someone help please ?
See pictures here :

Have a nice day !

Hi Fabien, make sure you have have valid JSON in the post body

{
"username": "Charles",  <-- double quotes around key and value
...
}
1 Like

Hello,
It works !!!
I thank you so much :slight_smile:

http://localhost:1337/api/auth/local/register

{
“username”: “Charles”,
“email”: “charlescantin@gmail.com”,
“password”: “chacha2020”
}

1 Like