notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

NPE on login (new version just fails, old shows exception)

Open slepkaviba opened this issue 3 months ago • 2 comments

This issue respects the following points:

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

slepkaviba avatar Oct 07 '25 04:10 slepkaviba

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.

slepkaviba avatar Oct 07 '25 05:10 slepkaviba

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.

apoorv569 avatar Oct 21 '25 14:10 apoorv569

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

popy2k14 avatar Dec 07 '25 13:12 popy2k14