Failed to connect: The URI prefix is not recognized

Hello
I’m trying to add a backup destination but I’m getting an error
Failed to connect: The URI prefix is not recognized.
I tried installing Duplicati on a VM and adding the same backup destination and it worked fine I will have Log down below

Request for http://127.0.0.1:8200/api/v1/remoteoperation/test gave error

System.NotSupportedException: The URI prefix is not recognized.
  at System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) [0x000ae] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0 
  at System.Net.WebRequest.Create (System.String requestUriString) [0x00014] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0 
  at Duplicati.Library.Backend.WEBDAV.CreateRequest (System.String remotename) [0x00026] in <5df020eccaa84287a3c79d1a4bf95fc9>:0 
  at Duplicati.Library.Backend.WEBDAV.ListWithouExceptionCatch () [0x00000] in <5df020eccaa84287a3c79d1a4bf95fc9>:0 
  at Duplicati.Library.Backend.WEBDAV.List () [0x00000] in <5df020eccaa84287a3c79d1a4bf95fc9>:0 
  at Duplicati.Library.Backend.WEBDAV.Test () [0x00000] in <5df020eccaa84287a3c79d1a4bf95fc9>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in <156011ea63b34859b4073abdbf0b1573>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00094] in <156011ea63b34859b4073abdbf0b1573>:0 
  at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x00289] in <156011ea63b34859b4073abdbf0b1573>:0

Reporting error gave error

System.ObjectDisposedException: Can not write to a closed TextWriter.
  at System.IO.StreamWriter.Flush (System.Boolean flushStream, System.Boolean flushEncoder) [0x00008] in <533173d24dae460899d2b10975534bb0>:0 
  at System.IO.StreamWriter.Flush () [0x00006] in <533173d24dae460899d2b10975534bb0>:0 
  at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x003bc] in <156011ea63b34859b4073abdbf0b1573>:0

Duplicati version: 2.0.6.3
OS: Ubuntu 20.04

Thank You

Hello and welcome to the forum.

I searched the forum and saw another user with this issue, and it sounds like it may have been related to the version of mono. What version do you have installed?

Hello drwtsn32
Thank you for you’re reply
I’m running Mono 6.12.0.122

Can you perform the “export as command line” option on this backup job? Exclude passwords and redact sensitive info. What does the URI look like?

Hello drwtsn32
Thank you for your reply again

this is the export as command line

mono /usr/lib/duplicati/Duplicati.CommandLine.exe backup "webdavs://example.com/remote.php/webdav/backup?auth-username=backup" /home/user/Desktop/files/ --backup-name=files --dbpath=/home/user/.config/Duplicati/XIGVNDNJFV.sqlite --encryption-module= --compression-module=zip --dblock-size=50mb --no-encryption=true --disable-module=console-password-input