Skip to content

problem connecting notes app android: NetworkErrorException #2570

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

Closed
PepsideMax opened this issue Feb 4, 2025 · 7 comments
Closed

problem connecting notes app android: NetworkErrorException #2570

PepsideMax opened this issue Feb 4, 2025 · 7 comments
Assignees
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale

Comments

@PepsideMax
Copy link

I try to connect my notes app to a free version of nexcloud yet it gives me the following error

App Version: 4.3.1
App Version Code: 40030192
App Flavor: play

Files App Version Code: 30300890 (PROD)

---

OS Version: 5.10.214-android13-4-00008-g62d26972ebb6-ab12324566(12703047)
OS API Level: 35
Device: raven
Manufacturer: Google
Model (and Product): Pixel 6 Pro (raven)

---

android.accounts.NetworkErrorException
	at it.niedermann.owncloud.notes.persistence.NotesRepository.lambda$addAccount$4(NotesRepository.java:263)
	at it.niedermann.owncloud.notes.persistence.NotesRepository.$r8$lambda$PEfAfzJDYsqH6Dc5pyZNbw0IYLw(Unknown Source:0)
	at it.niedermann.owncloud.notes.persistence.NotesRepository$$ExternalSyntheticLambda29.run(D8$$SyntheticClass:0)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

@joshtrichards joshtrichards transferred this issue from nextcloud/server Feb 4, 2025
@joshtrichards
Copy link
Member

Is "Sync Only on Wifi" on?

What version of Notes is installed on the Server?

@joshtrichards joshtrichards added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Feb 9, 2025
@xbais

This comment has been minimized.

@Lenzelot
Copy link

Lenzelot commented Apr 16, 2025

Pretty much the same thing as OP reported is happening here. Running Nextcloud self-hosted behind Nginx Proxy and I wanted to try this.

When starting Notes on Android it prompts to select your Nextcloud account. Upon choosing it throws this error message.

Server version (31.0.3) and app are up to date. I have just installed Notes on the server, it wasn't installed up until today. In Android in Settings, Passwords, passkeys and autofill, under accounts, select your Nextcloud account. Account sync is set to "Sync on for all items". Tried also with file sync disabled, same thing.

App Version: 4.3.1
App Version Code: 40030190
App Flavor: fdroid

Files App Version Code: 30310190 (PROD)

---

OS Version: 4.9.337-ab25517000(25517010)
OS API Level: 34
Device: sargo
Manufacturer: Google
Model (and Product): Pixel 3a (sargo) (Android 14)

---

android.accounts.NetworkErrorException
	at it.niedermann.owncloud.notes.persistence.NotesRepository.lambda$addAccount$4(NotesRepository.java:263)
	at it.niedermann.owncloud.notes.persistence.NotesRepository.$r8$lambda$PEfAfzJDYsqH6Dc5pyZNbw0IYLw(Unknown Source:0)
	at it.niedermann.owncloud.notes.persistence.NotesRepository$$ExternalSyntheticLambda29.run(D8$$SyntheticClass:0)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

If you need more information, could you tell us what exactly you need? I also have a Samsung Tablet with Android 14 on it I could try it on.

@joshtrichards
Copy link
Member

@xbais Your situation is different and appears to be something related to your WAF/reverse proxy (Cloudflare):

**Caused by: java.lang.IllegalStateException: <html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
**

@joshtrichards
Copy link
Member

@Lenzelot Does this comment describe your situation? #2078 (comment)

I have just installed Notes on the server, it wasn't installed up until today.

@Lenzelot
Copy link

@Lenzelot Does this comment describe your situation? #2078 (comment)

Ah yes it does. The solution (force stop and clear app storage) worked! Thank you.

@joshtrichards joshtrichards changed the title problem connecting notes app android problem connecting notes app android: NetworkErrorException Apr 17, 2025
@joshtrichards joshtrichards marked this as a duplicate of #2078 Apr 17, 2025
Copy link
Contributor

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label May 17, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale
Projects
None yet
Development

No branches or pull requests

5 participants