Homepage    |    GitHub    |    API    |    FAQ

Getting error while trying to sync with Nextcloud

Joplin version : 1.8.5
OS : Ubuntu 20.04 LTS

Hi,

I'm trying to set up joplin with my nextcloud server and I got an error when I try to do it via webdav.

This error is saying that https is not supported

Exactly I got :

"Last error: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"

I got 2FA on my nextcloud and already tried to get a new app password for it but same issue.

Anyone knows how to fix this issue?

Many thanks

Protocol "https:" not supported. Expected "http

Your URL starts with https, but you are using the port which is configured to http only.
Try your https port or change to http.

I'm using a hosted Nextcloud instance, specifically thegood.cloud, and I have honestly no clue how to use a different port. Any ideas?

Thanks in advance :slight_smile:

Hi !

Thanks for the answer

I fixed the issue by copy and paste WebDAV from file section (as requested) + using an OTP password because 2FA is activated on my Nextcloud account.
I also use a Nextcloud provider like you so it should resolve the issue.
I don’t know why it didn’t succeed the first time I tried but try to do it many times and it should be ok

1 Like

Hi everyone,

I'm also getting this error from a self-hosted nextcloud server.
But the webdav link is in http. So I can't tell whats the problem. I'm trying to connect from the linux desktop app:

Protocol "https:" not supported. Expected "http:" (Code ERR_INVALID_PROTOCOL)

And I don't use 2FA.

For me it sounds like your URL in Joplin is with https.

1 Like

ah, good point. It works with https ! thank you @JackGruber :smile:

I'm new to Joplin and I'm getting the same problem:
"Protocol "https:" not supported. Expected "http:" (Code ERR_INVALID_PROTOCOL)"
I've changed the URL in the sync setup from https to http, but I continue to get the same error message https not supported. Same error whether the URL is http or https. So I'm stuck. Please advise.

This will be fixed in the next version; for now you can just set the URL, save, and restart Joplin. After restarting, Joplin will work with the new URL.

Thanks, Roman. I did as you suggested and it solved the https problem! Thanks.
But now I have new errors. I'm using Kubuntu 20.04 and inputting as sync URL:
https://nextcloud05.webo.cloud/nextcloud/remote.php/WebDAV/Joplin
I have already created the Joplin folder on Webo. Is this URL correct?
The new sync error is

Completed: 2021-06-09 09:19

Last error: Error: MKCOL locks/: Unknown error 2 (404): 404 Not Found

404 Not Found


nginx/1.18.0 (Ubuntu)

And I've tried:
https://nextcloud05.webo.cloud/nextcloud/remote.php/DAV/Joplin

and get error:

PROPFIND : RemoteException: App not installed: (Exception Sabre\DAV\Exception\ServiceUnavailable) (503): <?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> <s:sabredav-version>4.1.4</s:sabredav-version> <s:exception>Sabre\DAV\Exception\ServiceUnavailable</s:exception> <s:message>RemoteException: App not installed: </s:message> </d:error> (Code 503)

Any further help would be appreciated. David

OK, Roman. I got it! The correct URL is
nextcloud05.webo.cloud/remote.php/dav/files/USERNAME/