ravenscroftj / freshrss-flaresolverr-extension

FreshRSS plugin that provides cloudflare puzzle solving via flaresolverr
GNU Affero General Public License v3.0
22 stars 4 forks source link

Error "XML Parsing Error: no root element found" and "PHP message: PHP Warning: Undefined array key "viahtml" in /app/www/p/api/cloudsolver.php on l> #9

Open byXav opened 6 months ago

byXav commented 6 months ago

Hi,

I tried to setup the extension today, but no luck for me, I keep having blank screen when I try it or sometimes this error appear :

XML Parsing Error: no root element found Location: http://192.168.1.133:9089/api/cloudsolver.php?feed=https%3A%2F%2Fwww3.yggtorrent.cool%2Frss%3Faction%3Dgenerate%26type%3Dcat%26id%3D2145%26passkey%3D01010101xxx Line Number 1, Column 1:

I thought I have the same problem of the guy from issue #7, but nope always the same.

So I dove into the folders and I found the error.log, where the following appear :

`Stack trace:

0 /app/www/p/api/cloudsolver.php(49): DOMDocument->loadXML()

1 {main}

thrown in /app/www/p/api/cloudsolver.php on line 49" while reading response header from upstream, client: 192.168.1.101, server: _, request: "GET /api/cloudsolv> 2024/05/11 20:35:37 [error] 263#263: *114 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "viahtml" in /app/www/p/api/cloudsolver.php on l> `

My Flaresolverr instance is at http://192.168.1.133:8191 and scream happily "FlareSolverr is ready!", and my FreshRss instance is at http://192.168.1.133:9089, both running in docker containers.

I try using this url to see the rss feed : http://192.168.1.133:9089/api/cloudsolver.php?feed=https%3A%2F%2Fwww3.yggtorrent.cool%2Frss%3Faction%3Dgenerate%26type%3Dcat%26id%3D2145%26passkey%3D01010101xxx

I must do something wrong, but can't find what or why.

vengefulpunk commented 6 months ago

I was just enabiling this for freshrss and I am running into the exact same issue. I even tried connecting it to another flaresolverr instance that I know is working but it is responding with a parsing error each time for any RSS feeds. I even tested feeds that are working fine without flaresolverr

byXav commented 6 months ago

Hi,

I still have the same problem. On LibreWolf (Firefox) it give me : XML Parsing Error: no root element found Location: http://192.168.1.133:9089/api/cloudsolver.php?feed=https://### Line Number 2, Column 1: ^

And on Brave Browser (Chromium) : This page contains the following errors: error on line 2 at column 1: Start tag expected, '<' not found Below is a rendering of the page up to the first error.

But it works with others RSS Feed, just YGG ones don't work.

But to make the extension work correctly, I had to reboot the FreshRSS container and disable/enable the extension.