FreshRSS / FreshRSS

A free, self-hostable news aggregator…
https://freshrss.org
GNU Affero General Public License v3.0
9.72k stars 827 forks source link

[Bug] BadRequest for CL Token #6662

Open AndreaDiNapoli opened 2 months ago

AndreaDiNapoli commented 2 months ago

Describe the bug

I'm having problem accessing to my freshrss API using compatible application (tested with ReaderYou and FeedMe at the moment). In ReaderYou I have the message "BadRequest for CL Token" every time I try to refresh my RSS feed.

My FreshRSS web application load and refresh feed completely fine and every API setting is correct and the API check is passed for both greader API and feeder API. Everything was working correctly since two days ago.

To Reproduce

  1. Go to any third party mobile APP compatible with FreshRSS
  2. Click on 'refresh/update'
  3. See error

Expected behavior

I would expect the app to be able to communicate with the server and update the rss feed and relative status.

FreshRSS version

1.24.1

Environment information

Additional context

No response

Alkarex commented 2 months ago

Hello, Please try the API manually with cURL on the following model and report any error: https://freshrss.github.io/FreshRSS/en/developers/06_GoogleReader_API.html#google-reader-compatible-api

Alkarex commented 2 months ago

And make sure you are using your API password and not your main FreshRSS password. Might be the same than https://github.com/Ashinch/ReadYou/issues/746#issuecomment-2252784029

AndreaDiNapoli commented 2 months ago

Thank you for answering me. I'm definitively sure the API password is correct. API access was working fine for nealy a year before and I checked just to be sure right now.

If I try the API manually i got the Auth code correctly

Alkarex commented 2 months ago

What about the other curl commands, do they also work?

AndreaDiNapoli commented 2 months ago

They seems to work just fine EXCEPT for the list request one! I get "Bad Request" from that one

Edit: even the tag one got "Bad Request". Unread counts and Get article worked just fine.

Alkarex commented 2 months ago

All the examples must work, otherwise the mobile clients will not work either. Send a screenshot, to make sure you are testing correctly. Check also your Web server logs for any error, as well as FreshRSS logs in ./data/users/_/log_api.txt

AndreaDiNapoli commented 2 months ago

Yeah I get it. I have planty of API error in the log you pointed me to. log.api: "[Tue, 30 Jul 2024 14:06:52 +0000] [warning] --- GReaderAPI::badRequest" ngnix log: 192.168.178.3 - - [30/Jul/2024:14:06:52 +0000] "POST /api/greader.phpaccounts/ClientLogin HTTP/1.1" 400 22 "-" "ReadYou/0.10.1(25)"

The strange thing is that everything was working fine and I didn't modify anything. Maybe a docker update? Should I try to roll back my version of RSS? (I arleady tried removing and re-building my docker).

Alkarex commented 2 months ago

You should first make sure you can pass the manual curl tests. If this leads to errors, check your logs. They will contain information that will allow understanding what is wrong.