selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

Error after installation through YunoHost

Open Binnette opened this issue 2 years ago • 4 comments

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.

  • The JSON Parse error we are currently experiencing: https://github.com/YunoHost-Apps/selfoss_ynh/commit/2cb317b33a88b47cc764626fa43c46a1a465a8da

image

  • The WIP project: https://github.com/YunoHost-Apps/selfoss_ynh
  • An issue related to YunoHost (not selfoss) when installing selfoss through it: https://github.com/YunoHost-Apps/selfoss_ynh/issues/2

Have a nice day.

Binnette avatar Mar 28 '22 08:03 Binnette

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 avatar Mar 28 '22 09:03 jtojnar

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

jtojnar avatar Mar 28 '22 09:03 jtojnar

@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

farvardin avatar Apr 01 '22 16:04 farvardin

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

jtojnar avatar Apr 08 '22 20:04 jtojnar

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

Binnette avatar Feb 23 '23 23:02 Binnette