404 on list action for model/view without primary key
See original GitHub issueDescribe the bug
404 status on /admin/api/resources/:name/actions/list
Installed libraries and their versions
"@admin-bro/koa": "^1.1.1",
"@admin-bro/sequelize": "^1.1.1",
"admin-bro": "^3.3.1",
"pg": "^8.5.1",
"sequelize": "^6.3.5"
To Reproduce
Steps to reproduce the behavior:
- Create view without primary key
id
- Request
/admin/api/resources/:name/actions/list
- See logs:
SELECT "id", ...
- See error
Expected behavior
- 200 HTTP
- Correct query without not defined field
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
404 on list action for model/view without primary key #708
I'm getting 404 on the list route for my user resource. It has a primary key in the DB and in the sequelize...
Read more >Getting 404 Error MVC when trying to add New Object to a List
The problem is that there is no action for your AddNewFriend View to redirect, a view should have a action with method get...
Read more >Handling 404 Not Found in Asp.Net Core - DevTrends
Handling specific cases of page not found is best addressed with a custom view and setting the status code (either directly or via...
Read more >How to handle 404 errors in ASP.NET Core MVC - InfoWorld
NET Core as the runtime and ASP.NET Core 3.1 (or later) from the drop-down list at the top. Select “Web Application (Model-View-Controller)” as ......
Read more >Viewsets - Django REST framework
Django REST framework allows you to combine the logic for a set of related views in a single class, called a ViewSet ....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dziraf Do you have any other solution than adding an AI field over multiple-columns primary key?
I’m not intimate with AdminJS internals, but could
recordId
be a list with the primary key columns?