Sync error: Network request failed

The browser, as well as everything else, is working fine on the device.

Any particular URL to try?

The question was if you can open the sync target URL https://cloud01.opsdata.ch/remote.php/webdav/Joplin in the browser.

OK. After entering https://cloud01.opsdata.ch/remote.php/webdav/Joplin in a browser, I get the message:

"This is the WeDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client."

on an otherwise blank screen.

In Curl there's a message:

  • Connection state changed (MAX_CONCURRENT_STREAMS == 128)!

I don't know what it means but maybe the mobile network lib cannot handle this.

$ curl -v  https://cloud01.opsdata.ch/remote.php/webdav/Joplin
*   Trying 185.169.84.123...
* TCP_NODELAY set
* Connected to cloud01.opsdata.ch (185.169.84.123) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=shared01.opsone-cloud.ch
*  start date: Apr 30 07:39:21 2021 GMT
*  expire date: Jul 29 07:39:21 2021 GMT
*  subjectAltName: host "cloud01.opsdata.ch" matched cert's "cloud01.opsdata.ch"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7f865b00ca00)
> GET /remote.php/webdav/Joplin HTTP/2
> Host: cloud01.opsdata.ch
> User-Agent: curl/7.64.1
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 401
< server: nginx
< date: Fri, 18 Jun 2021 11:34:05 GMT
< content-type: application/xml; charset=utf-8
< expires: Thu, 19 Nov 1981 08:52:00 GMT
< cache-control: no-store, no-cache, must-revalidate
< pragma: no-cache
< set-cookie: oc_sessionPassphrase=Ry8uVJn9sQTgrZwKwu4IxYodidRbAahBd6yvetoKaUBWRFxlA63BMyK%2BCRgZ20ZAq76JUNzgs0Gu4s579zIwVa2e5rXkh3BNkHdNh9QIRApeQdp3AtLBxSTr6WLe2RU1; path=/; secure; HttpOnly; SameSite=Lax
< set-cookie: ocv8j05z47d9=48d2412461a72c3c075ebf74d8a26b1e; path=/; secure; HttpOnly; SameSite=Lax
< referrer-policy: no-referrer
< x-content-type-options: nosniff
< x-download-options: noopen
< x-frame-options: SAMEORIGIN
< x-permitted-cross-domain-policies: none
< x-robots-tag: none
< x-xss-protection: 1; mode=block
< set-cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
< set-cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
< content-security-policy: default-src 'none';
< www-authenticate: Basic realm="Nextcloud", charset="UTF-8"
<
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
  <s:message>No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured</s:message>
</d:error>
* Connection #0 to host cloud01.opsdata.ch left intact
* Closing connection 0

Do you have an account on this server that we can use to debug? Obviously this is something specific to either your phone or your server.

Should I try to open a second, temporary, account with that server?

I've just noticed a strange thing related to this issue. Nextcloud on the same device (Android 7.0 tablet) has, unknown to me, been downloading all my *.md files into my Joplin folder but the Joplin app just can't seem to see them.

This Android device was returned to factory defaults maybe two months ago specifically to try to solve this Joplin issue. Since then, the Joplin app has been installed twice and is now on v1.8.5.

Yes, that might help us reproduce the problem.

Sorry, it appears that I'm unable to open a second, temporary account with that server.

@roman_r_m I have check, we can create a free account with 2 GB storage.

Good idea, thanks.

I have tried with the latest Joplin from dev and it syncs fine.

I actually have an old tablet that runs Android 7, I think. I'll try with the exact version that was causing issues for seedywee.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.