fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

Error after installation through YunoHost #1327

Closed Binnette closed 1 year ago

Binnette commented 2 years ago

Hi @jtojnar, I just wanted to let you know (and the community) that there is a "Work In Pprogress" by @ericgaspar about integrating selfoss in the platform YunoHost. @ericgaspar and I are experiencing some JSON Parse error after installation is complete.

image

Have a nice day.

jtojnar commented 2 years ago

For the JSON.parse error, you can look at the requests in the Network panel of your Browser’s developer tools. You can see what the HTTP response contains.

jtojnar commented 2 years ago

When it’s ready, we can add a link to readme.

farvardin commented 2 years ago

@jtojnar I've installed selfoss on yunohost, and got this "Load list error: parsererror SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" error as well. I've looked into the developper tools in the network panel, the response is only the html code for the page, with nothing related to json or json code. What else could I investigate?

image

image

jtojnar commented 2 years ago

That is weird.

It should not show the HTML, when ajax is passed in the query string for the GET request:

https://github.com/fossar/selfoss/blob/2.18/controllers/Index.php#L35

Which should be the case:

https://github.com/fossar/selfoss/blob/2.18/public/js/selfoss-db.js#L107 https://github.com/fossar/selfoss/blob/2.18/public/js/selfoss-base.js#L25

Binnette commented 1 year ago

Selfoss is now working nicely on YunoHost 🎉 https://github.com/YunoHost-Apps/selfoss_ynh