joplin icon indicating copy to clipboard operation
joplin copied to clipboard

`Network request failed` when trying to sync

Open K4LCIFER opened this issue 10 months ago • 2 comments

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 avatar Apr 21 '24 04:04 K4LCIFER

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

laurent22 avatar Apr 21 '24 10:04 laurent22

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.

ViktorF avatar Apr 22 '24 05:04 ViktorF

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

K4LCIFER avatar May 14 '24 05:05 K4LCIFER