miniflux/v2

Internal Server Error on API endpoints /v1/entries and /entries/1/bookmark

majorminors opened this issue · 1 comments

Couldn't find anything in issues or online that would help be debug this, so asking here.

When I try:

curl -X PUT -H "X-Auth-Token: TOKEN" -H "Content-Type: application/json" -d '{"entry_ids": [1], "status": "read"}' https://example.org/v1/entries

or

curl -X PUT -H "X-Auth-Token: TOKEN" https://example.org/v1/entries/1/bookmark

I get a {"error_message":"store: nothing has been updated"}

and the debug log shows e.g.:

Aug 27 02:51:59 hostname miniflux[317810]: time=2024-08-27T02:51:59.820+01:00 level=INFO msg="[API] User authenticated successfully with the API Token Authentication" authentication_successful=true client_ip=82.2.127.151 user_agent=curl/7.88.1 username=dorian
Aug 27 02:51:59 hostname miniflux[317810]: time=2024-08-27T02:51:59.864+01:00 level=ERROR msg="Internal Server Error" error="store: nothing has been updated" client_ip=82.2.127.151 request.method=PUT request.uri=/v1/entries/1/bookmark request.user_agent=curl/7.88.1 response.status_code=500
Aug 27 02:51:59 hostname miniflux[317810]: time=2024-08-27T02:51:59.864+01:00 level=DEBUG msg="Incoming request" client_ip=82.2.127.151 request.method=PUT request.uri=/v1/entries/1/bookmark request.protocol=HTTP/1.0 request.execution_time=49.861004ms

I don't know how to debug this further. Am I doing something wrong? Any assistance greatly appreciated.

Oh. It's because I was checking on a range of ID's that didn't exist. Embarrassing.