skip to Main Content

Strapi v5 increments ID non-sequentially Data Not Found

In strapi displays:

strapi displays

Mysql 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


  1. Your snapshots says, the database is making duplicate entries. Try a new database and lookup in the terminal logs if it hits multiple queries.

    Login or Signup to reply.
  2. use documentId, id does not work in v5

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search