Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using Fever API since FreshRSS 1.19.2 #4200

Closed
gdirch opened this issue Feb 5, 2022 · 15 comments · Fixed by #4201
Closed

Problem using Fever API since FreshRSS 1.19.2 #4200

gdirch opened this issue Feb 5, 2022 · 15 comments · Fixed by #4201
Labels
API 🤝 API for other clients
Milestone

Comments

@gdirch
Copy link

gdirch commented Feb 5, 2022

I'm using the app Fiery Feeds using the Fever API on iOS and macOS to read RSS based news using FreshRSS. Since upgrading to FreshRSS 1.19.2 the app Fiery Feeds no longer gets any results from FreshRSS. The changelog of FreshRSS does not mention any changes of the Fever API. The logfile of FreshRSS does not show any errors. Is there anything else I can do to analyse a possible problem with the latest version of FreshRSS?

@Alkarex Alkarex added the API 🤝 API for other clients label Feb 5, 2022
@Alkarex
Copy link
Member

Alkarex commented Feb 5, 2022

Hello,
Which version of FreshRSS was the last working for you? How do you install FreshRSS, on which platform (and versions, e.g. of PHP)?

Additional logs can be found in ./FreshRSS/data/users/_/log_api.txt

And debugging information can be enabled by uncommenting the following two lines:

FreshRSS/p/api/fever.php

Lines 60 to 61 in fe880d1

//Minz_Log::debug('----------------------------------------------------------------', API_LOG);
//Minz_Log::debug(debugInfo(), API_LOG);

@gdirch
Copy link
Author

gdirch commented Feb 5, 2022

I'm using a self maintained Docker image based on Alpine 3.15.0 with PHP 8.0.14 and MariaDB 10.6.4. The latest working version of FreshRSS was 1.19.1. If I copy the file /app-release/www/p/api/fever.php used in version 1.19.1 to version 1.19.2 everything is running fine.

In the logfile ./FreshRSS/data/users/_/log_api.txt I cannot find any actual hints.

I've enabled the debugging by uncommenting the two mentioned lines but I cannot find a file containing the log ...

@Alkarex Alkarex added this to the 1.20.0 milestone Feb 5, 2022
@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

On a 32-bit system, right? Probably a regression from #4110 , not allowing 64-bit integers as string for 32-bit systems.
Fix coming.

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Feb 6, 2022
@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

Could you please try this patch #4201 on the edge (main) branch?

@gdirch
Copy link
Author

gdirch commented Feb 6, 2022

Using your patched fever.php file, I'm getting an uncaught TypeError:
2022/02/06 13:23:23 [error] 52#52: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: FeverDAO::findEntries(): Argument #3 ($max_id) must be of type string, null given, called in /app-release/www/p/api/fever.php on line 476 and defined in /app-release/www/p/api/fever.php:78

Removing the type definitions in line 78 my FreshRSS is working as expected:
public function findEntries(array $feed_ids, array $entry_ids, $max_id, $since_id) {

Currently I'm not using a git clone of FreshRSS to build the Docker image. Instead I'm using the latest stable version of FreshRSS by downloading https://github.com/FreshRSS/FreshRSS/archive/refs/heads/master.zip. To test your patch I've downloaded the file edge.zip and patched the above mentioned file fever.php only. Can this be the cause for the TypeError? Do I have to patch all files referenced in your commit last night?

@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

But hold on, let me patch the bug you found first.

@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

Ready for new test.

@gdirch
Copy link
Author

gdirch commented Feb 6, 2022

Great, your fix is working! Many thanks for your very fast response. Now I'm waiting for 1.20.0 ;-)

I think this issue can be closed now.

@gdirch gdirch closed this as completed Feb 6, 2022
Alkarex added a commit that referenced this issue Feb 6, 2022
* Fix Fever 32 bit ID issue + more PHP type hints
#fix #4200
Follow up and fix regression from #4110

* More PHP type hints with PHPStan

* Fix pull problem

* Avoid more nulls
@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

Merged into our edge branch (the default branch) https://github.com/FreshRSS/FreshRSS
You are welcome to use this version, which is a rolling release, as we need more testers

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Feb 6, 2022
@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

@gdirch I have found a couple more issues. Could you please try #4202 ?

@Alkarex
Copy link
Member

Alkarex commented Feb 6, 2022

In particular marking feeds and categories as read

Alkarex added a commit that referenced this issue Feb 6, 2022
* More PHP type hints for Fever
Follow-up of #4201
Related to #4200
@gdirch
Copy link
Author

gdirch commented Feb 7, 2022

I've taken the latest https://github.com/FreshRSS/FreshRSS/archive/refs/heads/edge.zip and had no problems marking specific feeds or whole categories as read/unread.

@Alkarex
Copy link
Member

Alkarex commented Feb 7, 2022

Thanks for the feedback :-)

@gdirch
Copy link
Author

gdirch commented Feb 8, 2022 via email

Alkarex added a commit that referenced this issue Feb 28, 2022
* More PHP type hints for Fever
Follow-up of #4201
Related to #4200

* Detail

* Draft

* Progress

* More draft

* Fix thumbnail PHP type hint
#4215

* More types

* A bit more

* Refactor FreshRSS_Entry::fromArray

* Progress

* Starts to work

* Categories

* Fonctional

* Layout update

* Fix relative URLs

* Cache system

* Forgotten files

* Remove a debug line

* Automatic form validation of XPath expressions

* data-leave-validation

* Fix reload action

* Simpler examples

* Fix column type for PostgreSQL

* Enforce HTTP encoding

* Readme

* Fix get full content

* target="_blank"

* gitignore

* htmlspecialchars_utf8

* Implement HTML <base>
And fix/revert `xml:base` support in SimplePie simplepie/simplepie@e49c578

* SimplePie upstream PR merged
simplepie/simplepie#723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API 🤝 API for other clients
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants