hi all, I’m having the same problem , I did a quickstart strapi installation, created some content , but am unable to access it via get requests
when I try o access the published content with http://localhost:1337/api/contentpanels
I see:
{
“data”: null,
“error”: {
“status”: 404,
“name”: “NotFoundError”,
“message”: “Not Found”,
“details”: {}
}
}
might be a problem if you have typescript enabled but used a template by strapi. Templates are for some reason in vanilla Javascript so template files are .js, change these to .ts and it solved this problem for me.
I don’t know if all you guys found the solution to this. But I was able to solve this by updating the permissions of the api. In “Strapi Dashboard” select “Settings”, then in section “Users & Permissions Plugin” select “Roles” and edit the “Public” role by clicking on the small pencil. Find the api you want to access and set the permissions accordingly. You should be able to see the content by entering …/api/your_api_names (in plural).
I created a review collection and enabled find and findone in public roles. I am getting all reviews for /api/reviews but for /api/review/1 I am getting 404 not found
Have you solved the issue yet, am facing the same issue too,
“Strapi 404 Not Found error when retrieving single product by ID”
all permissions are correctly set, tried restarting your the server couple times. (v5.0.6) all node versions and npm are crystal.