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

folders load, but no articles #1137

Open
RefurioAnachro opened this issue Jan 22, 2023 · 23 comments
Open

folders load, but no articles #1137

RefurioAnachro opened this issue Jan 22, 2023 · 23 comments

Comments

@RefurioAnachro
Copy link

RefurioAnachro commented Jan 22, 2023

For, like, about a year now this Android app seems to be broken. I seem to remember this being related to an update to the nextcloud server, so downgrading the app doesn't help, and I'd rather not downgrade the server. The server version also happens to break basically all other android apps for nextcloud news. The web view is fine as ever, though.

On sync all folders load, but then it just says:
"Fetched 0 items so far"

I've tried reinstalling the app, which implies clearing all data. This doesn't happen with all feeds, it's not just happening for the following example feed:

https://www.telepolis.de/news-atom.xml

Maybe this is related:
nextcloud/news#1801
But they seem to say that the app should be fixed...?

My server version is Nextcloud Hub 25.0.3, News App is 20.0.0, and the Nextcloud News Android App's version is F-Droid's current version 0.9.9.77. In case the app is deprecated, could you please point me to the official follow-up?

@David-Development
Copy link
Member

@RefurioAnachro Thanks for the report. What kind of hardware are you running your nextcloud on? Could it be a 32bit / 64bit issue? Details here: nextcloud/news#1320

Related tickets:

@RefurioAnachro
Copy link
Author

RefurioAnachro commented Jan 28, 2023

Thanks for your response! I think it's 64 bit and that's what the following indicates:

# docker exec -it nextcloud bash
root@cloud:/var/www/html# cd
root@cloud:~# cat > x.php
<?php
$lastModified=1619617154;
$paddedLastModified = $lastModified * 1000000;
echo gettype($paddedLastModified);
?>
root@cloud:~# php x.php 
integer

I'll be looking into the other tickets to see if I can get more information later today.

@RefurioAnachro
Copy link
Author

I looked into nextcloud.log, it doesn't seem to get any new entries when I refresh the app. I'm not sure what else to look at.

@Corey-Feng
Copy link

I looked into nextcloud.log, it doesn't seem to get any new entries when I refresh the app. I'm not sure what else to look at.

I'm in the same situation as you. If you solve it, tell me

@Corey-Feng
Copy link

For, like, about a year now this Android app seems to be broken. I seem to remember this being related to an update to the nextcloud server, so downgrading the app doesn't help, and I'd rather not downgrade the server. The server version also happens to break basically all other android apps for nextcloud news. The web view is fine as ever, though.

On sync all folders load, but then it just says: "Fetched 0 items so far"

I've tried reinstalling the app, which implies clearing all data. This doesn't happen with all feeds, it's not just happening for the following example feed:

https://www.telepolis.de/news-atom.xml

Maybe this is related: nextcloud/news#1801 But they seem to say that the app should be fixed...?

My server version is Nextcloud Hub 25.0.3, News App is 20.0.0, and the Nextcloud News Android App's version is F-Droid's current version 0.9.9.77. In case the app is deprecated, could you please point me to the official follow-up?

I found that the Android app cannot display all articles. If I set articles as unread or bookmarked, the app can display them.

@David-Development
Copy link
Member

The only other things that I can think of is to check if the Rest API returns data:

curl -u username http://nextcloud/index.php/apps/news/api/v1-2/items
curl -u username http://nextcloud/index.php/apps/news/api/v1-2/items/updated?lastModified=1675057951&type=3&id=0 \| jq '. \| length'

How many unread articles do you have?

@Corey-Feng the app doesn't download articles that are marked as read. Only unread or starred articles. (at least not if you have a lot of unread articles)

@Corey-Feng
Copy link

我唯一能想到的其他事情是检查 Rest API 是否返回数据:

curl -u username http://nextcloud/index.php/apps/news/api/v1-2/items
curl -u username http://nextcloud/index.php/apps/news/api/v1-2/items/updated?lastModified=1675057951&type=3&id=0 \| jq '. \| length'

您有多少未读文章?

@Corey-Feng 应用不会下载标记为已读的文章。仅未读或加星标的文章。(至少如果你有很多未读的文章,就不会)

image

@RefurioAnachro
Copy link
Author

Both curl commands work for me, the first fetches 25M json, the second about 1.1M.

@RefurioAnachro
Copy link
Author

Corey-Feng said:

I found that the Android app cannot display all articles. If I set articles as unread or bookmarked, the app can display them.

For me the app doesn't show anything, even if I have unread or starred articles.

@David-Development
Copy link
Member

Sorry for the delay. I'm currently debugging this issue with another user that has the same issue. Unfortunately for me it's working perfectly fine on his nextcloud. I'm suspecting that there is an issue with one of the articles (maybe a feed that produces huge articles) which causes the sync to silently fail. I'll report back once we figure it out.

In the meantime.. If anyone has experience with Android Studio feel free to send me the logs from the sync. Maybe I can spot something there.

@David-Development
Copy link
Member

It seems like one user was able to solve the sync issues by making sure that he had enough free storage on his phone. I'll have to run some tests in the emulator to see why it silently fails but for him it helped to have a few GB of free storage. (He is running Android 12). What are you guys using on your phones?

@EricDriussi
Copy link

Hi there!
Maybe a dumb question but have any of the affected users tried to sync with another RSS client?

I'm having this issue as well and just out of curiosity I tried a couple of desktop RSS readers and they all seem to behave the same way.

Maybe this refers to the same thing:

also happens to break basically all other android apps for nextcloud news

It might just be my server set up or whatever but I thought I'd throw it out there in case the issue lies elsewhere for the users in this thread.

@David-Development
Copy link
Member

Great idea to try it with different RSS readers.. and I'm glad this one is not the only one struggeling 😅

If anyone else that has this issue could provide a test account I could try to debug it again (since the last test account I had was related to low storage issues on the phone). Just send it to me privately via email!

@pern0x
Copy link

pern0x commented Oct 12, 2023

i have the same issue. Version 0.9.9.79 from fdriod is working. Newer version don't show any article, but all folders and feeds are shown in the menu.
When I start the download on the article, it says "0 articels loaded".
I'm using nextcloud 27.1.2. On nextcloud version 26 the newer app versions didn't work, too.
In the nextcloud log I found this:
{"reqId":"ncTvlQ6zzeNbmnJZ3O7t","level":3,"time":"2023-10-12T12:45:46+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"No parser can handle this stream","userAgent":"--","version":"27.1.2.1","data":{"app":"news"},"id":"65280f640c43f"}

@pern0x
Copy link

pern0x commented Oct 31, 2023

Great idea to try it with different RSS readers.. and I'm glad this one is not the only one struggeling 😅

If anyone else that has this issue could provide a test account I could try to debug it again (since the last test account I had was related to low storage issues on the phone). Just send it to me privately via email!

I can share a test account to you. How can I share it with you?

@pern0x
Copy link

pern0x commented Nov 4, 2023

I have find out, that it has something do to with the login over the nextcloud app. Today I have entered my server address and credentials and it works again.

@David-Development
Copy link
Member

@pern0x Sorry for the delay. You can share it with me by sending it to my email [email protected]

Glad that the fallback is working for you - however I'm really confused how this is possible if the SSO solution is not working.. 🤔

@David-Development
Copy link
Member

In case you guys are interested in investigating this issue further feel free to send me access to a test account. Otherwise maybe also logcat logs could help investigate this further.

@RefurioAnachro
Copy link
Author

Woah, hello again! Sure, but I'll have to reinstall all this stuff again, as I had given up on it in the meantime. I don't quite see how a nextcloud account might help, but I'm sure we can work something out that does. I'll drop you an email later today. Thanks!

@pern0x
Copy link

pern0x commented Mar 20, 2024

For me this issue is solved. My apache2 has had a missconfuguration.
In the file /etc/apache2/conf-available/security.conf the variable X-Content-Security-Policy:allow ‘self’; has used the french 'accent'/backtick but not the valid single-quote.
Changing the quote solves it

@labeste
Copy link

labeste commented Nov 5, 2024

Hi, I'm having the same issue ("0 articles loaded"), but - as a french user too - I looked after the variable X-Content-Security-Policy:allow ‘self’; mentioned just above, and I don't have it, so it seems the problem is elsewhere... Any ideas ? Thanks for your help.

Infos : I use Nextcloud News Android 0.9.9.90 and my server is Nextcloud 28.0.7. Maybe this Android version isn't compatible with the server one ?
Logs on the server say "no app in context" and "Session token invalidated before logout".

Edit : I may have found the problem, my News version is 24.0.0, which seems to not have a compatible version with Nextcloud 28 (see here how can I resolve this ? I guess I'll have to wait for compatible versions...

@David-Development
Copy link
Member

@labeste Would it be possible to create a test account on your server (with example feeds) and send me the credentials privately? ([email protected])

@labeste
Copy link

labeste commented Dec 9, 2024

@David-Development Well, I'm afraid I won't do that, sorry.

It's probably just a version / compatibility issue, I'll wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants