joplin
joplin copied to clipboard
`Network request failed` when trying to sync
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
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
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.
I am no longer using Joplin, so I can no longer test this issue.