Unable to Update a User - Not null constraint violation

System Information
  • Strapi Version: 4.0.0
  • Operating System: macOS
  • Database: SQLite
  • Node Version: 16.13.0
  • NPM Version: 8.1.0
  • Yarn Version: /

I am trying to update a User using the PUT /user/:id endpoint. I have created a brand new project. Then I register a User, I login in and update that User.

In the Admin panel I enable the PUT method on the Authenticated role.

But I keep on getting the following error: error: Cannot read properties of null (reading ‘id’)

2 Likes