Strapi auth/local 500 error

System Information
  • Strapi Version: 3.6.8
  • Operating System:
  • Database: sqlite
  • Node Version: 14.15.3
  • NPM Version:
  • Yarn Version:


Whenever I attempt to POST to the auth/local api (http://localhost:1337/auth/local) I receive an {
“statusCode”: 500,
“error”: “Internal Server Error”,
“message”: “An internal server error occurred”

I am not sure what I’ doing wrong to produce this. This is done via postman

Check the output of strapi to see what the error is.
500 indicates the server crashed.

Thanks for the reply, the error message im receiving for this POST is

TypeError: Cannot read property ‘prototype’ of undefined

What are you sending it ? Care to show the strapi logs and what you are sending?
This is for v3 I’m guessing ?

Sorry, I’m not at my computer right not but can send the logs later, it is v3 and I followed the strapi authentication documentation. Sending a JSON to auth/local with postman containing (matching the created user):
“identifier”: “”,
“password”: “strapi”

I have since installed a new strapi with same version and it works fine with exactly the same collections input.

There is incompatibility issue between strapi and the new redis version. You need to downgrade it from version 4.0 to 3.1.2. Just add to your dependencies in package.json the following line and reinstall the dependencies

"redis": "3.1.2"


Thanks for the advice I’ll give I a go

how can I find the error msg
it gives me

"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal server error occurred"

Normally when you get 500 errors you need to check the STRAPI server logs the console for errors.
500 means the DB crashed or something to do with the DB mostly

how can I solve it I’m using Postgres?

you need to check the STRAPI server logs the console for errors.

the console gives me status Code 500 on the endpoint
where can I find the error details?

Redis unexpected token in node-modules /redis/dist/index.js

1 Like

Exactly the same here! Have you been able to fix it?

For anyone still struggling with this

updating package.json dependencies with

“redis”: “3.1.2”,
“koa2-ratelimit”: “0.9.0”

Seems the problem is within koa2-ratelimit, using verion 4.1.0 of redis as well

1 Like