nextcloud / news-android

📱🗞️ Android client for the Nextcloud news/feed reader app
https://play.google.com/store/apps/details?id=de.luhmer.owncloudnewsreader
GNU Affero General Public License v3.0
686 stars 258 forks source link

folders load, but no articles #1137

Open RefurioAnachro opened 1 year ago

RefurioAnachro commented 1 year ago

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: https://github.com/nextcloud/news/issues/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 commented 1 year ago

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

Related tickets:

RefurioAnachro commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

我唯一能想到的其他事情是检查 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 commented 1 year ago

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

RefurioAnachro commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

@pern0x Sorry for the delay. You can share it with me by sending it to my email david-dev@live.de

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 commented 7 months ago

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 commented 6 months ago

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 commented 5 months ago

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