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

Network request failed when trying to sync #10340

Closed
K4LCIFER opened this issue Apr 21, 2024 · 3 comments
Closed

Network request failed when trying to sync #10340

K4LCIFER opened this issue Apr 21, 2024 · 3 comments
Labels
bug It's a bug

Comments

@K4LCIFER
Copy link

K4LCIFER commented Apr 21, 2024

Operating system

Android

Joplin version

3.0.1 also 2.14.9

Desktop version info

No response

Current behaviour

Syncing fails with an error saying Network request failed

1. Set up a sync with WebDAV, or Nextcloud
2. Enter in credentials, and WebDAV URL
3. Tap  "Check synchronization settings"
4. Observe that it fails and that the error `Network request failed` is displayed.

Just some extra context: I'm running Nextcloud as the AIO docker container behind a Caddy reverse proxy. This issue seems to have only started after switching to Nextcloud AIO with Caddy from the Snap.

I also know that Nextcloud, and WebDAV sync is working fine because the exact same URL and credentials work in the Flatpak version of Joplin (v.2.14.20).

Expected behaviour

I would expect sync to work. It worked in the past.

Logs

Fdroid Logs
Google Play Logs

@K4LCIFER K4LCIFER added the bug It's a bug label Apr 21, 2024
@laurent22
Copy link
Owner

Make sure the reverse proxy pass the complete data to and from Nextcloud, in particular headers. I know that a missing content-type header for example would cause this error (error reporting in the framework we use, React Native, is extremely vague). Also could probably happen with custom TLS certificates

@ViktorF
Copy link

ViktorF commented Apr 22, 2024

I had the same problem.
I recently migrated my Nextcloud to a new host and reinstalled it from scratch.
I had misconfigured my SSL in nginx. It didn't provide the full certificate chain, which then triggered the "network request failed" error in joplin.
Fixing this allowed me to synchronise with nextcloud.

@K4LCIFER
Copy link
Author

I am no longer using Joplin, so I can no longer test this issue.

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

No branches or pull requests

3 participants