NPE on login (new version just fails, old shows exception)
This issue respects the following points:
- [x] I have read the FAQ
- [x] I have searched for existing issues
- [x] The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
Try to login using Nextcloud Files.
It does work for a little, then crashes.
Expected behavior
Logs in.
Notes Android version
4.4.1, 4.4.2, 4.5.0
Notes server version
4.12.3
Nextcloud Android version
3.34
Nextcloud version
32
Device
S24
Android Version
16
App Store
- [x] Google Play Store
- [x] F-Droid
- [ ] Huawei App Gallery
Stacktrace
No response
So it is proxy issue, and adding:
# add this line if you use FPM
fastcgi_hide_header X-Robots-Tag;
# add this line if you proxy to the inbuilt Apache server
proxy_hide_header X-Robots-Tag;
# this should have been in your config already
add_header X-Robots-Tag "noindex, nofollow" always;
Fixed the issue.
Affected by #2848.
I have similar issue, I tested on couple of Android phones all seem to have same issue. I open the app, click on "Choose account" button then select the account and click "OK", it then asks for permission to access the "Nextcloud account", I click on "Allow" button, it shows loading for a second or so then goes back to original screen which has "Choose account" button.
Few updates before the app was crashing with some error (stack trace I suppose) but I don't have that copied anywhere so can't share.
I have tested both from Google play store and F-Droid store.
For server I use the AIO container and for reverse proxy I use Nginx Proxy Manager.
Same issue here:
App Version: 4.5.2
App Version Code: 40050290
App Flavor: play
Files App Version Code: 30340190 (PROD)
---
OS Version: 6.1.134-android14-11-g66e758f7d0c0-ab13748739(14339231)
OS API Level: 36
Device: husky
Manufacturer: Google
Model (and Product): Pixel 8 Pro (husky)
---
android.accounts.NetworkErrorException
at it.niedermann.owncloud.notes.persistence.NotesRepository.lambda$addAccount$6(NotesRepository.java:276)
at it.niedermann.owncloud.notes.persistence.NotesRepository.$r8$lambda$zj4QQBMwpYS7H0DAqgyiBheG5H8(Unknown Source:0)
at it.niedermann.owncloud.notes.persistence.NotesRepository$$ExternalSyntheticLambda31.run(D8$$SyntheticClass:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:524)
at java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
Also had an npm Proxy in between and the header changes from @slepkaviba fixed the issue for me.
Thx