Strapi v5 increments ID non-sequentially Data Not Found
In strapi displays:
Mysql displays:
When i try it in postman with
Url: http://localhost:1337/api/cates/3
Result:
{
"data": null,
"error": {
"status": 404,
"name": "NotFoundErro]",
"message": "Not Found",
"details": 1
}
}
In Strapi v4 i didn’t have this issue.
2
Answers
Your snapshots says, the database is making duplicate entries. Try a new database and lookup in the terminal logs if it hits multiple queries.
use documentId, id does not work in v5