Errors backing up to OneDrive for Business

Hello to everyone! I have the same issue. I don’t have any problem on Windows machines, but have on CentOS.

The backup created successfully, but I see error on test and after my attempt to restore a file.

Error with restore:
2020-07-17 17:41:36 +03 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: “duplicati-baaa5cd4cbb594155a9a37bb12124a61b.dblock.zip.aes”, message: Cannot send a content-body with this verb-type.

Detail error with test:
17 Jul 2020 г., 17:53: Failed to process file duplicati-bb09685ac5fa9412e871208b1e44b5345.dblock.zip.aes
{“ClassName”:“System.Net.WebException”,“Message”:“Cannot send a content-body with this verb-type.”,“Data”:null,“InnerException”:{“ClassName”:“System.Net.ProtocolViolationException”,“Message”:“Cannot send a content-body with this verb-type.”,“Data”:null,“InnerException”:null,“HelpURL”:null,“StackTraceString”:" at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in :0 \n at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func2[T,TResult] func) [0x0000d] in <a1451af8039c4226a11884e194023e35>:0 \n at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in <a1451af8039c4226a11884e194023e35>:0 \n at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <a1451af8039c4226a11884e194023e35>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233079,"Source":"System"},"HelpURL":null,"StackTraceString":" at Duplicati.Library.Main.AsyncDownloader+AsyncDownloaderEnumerator+AsyncDownloadedFile.get_TempFile () [0x00008] in <8f1de655bd1240739a78684d845cecc8>:0 \n at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x000b0] in <8f1de655bd1240739a78684d845cecc8>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233079,"Source":"Duplicati.Library.Main"} 17 Jul 2020 г., 17:52: Failed to process file duplicati-ib983cbbcbe774570a3691a6f35c35637.dindex.zip.aes {"ClassName":"System.Net.WebException","Message":"Cannot send a content-body with this verb-type.","Data":null,"InnerException":{"ClassName":"System.Net.ProtocolViolationException","Message":"Cannot send a content-body with this verb-type.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in <a1451af8039c4226a11884e194023e35>:0 \n at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func2[T,TResult] func) [0x0000d] in :0 \n at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in :0 \n at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0 “,“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:null,“HResult”:-2146233079,“Source”:“System”},“HelpURL”:null,“StackTraceString”:” at Duplicati.Library.Main.AsyncDownloader+AsyncDownloaderEnumerator+AsyncDownloadedFile.get_TempFile () [0x00008] in <8f1de655bd1240739a78684d845cecc8>:0 \n at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x000b0] in <8f1de655bd1240739a78684d845cecc8>:0 “,“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:null,“HResult”:-2146233079,“Source”:“Duplicati.Library.Main”}
17 Jul 2020 г., 17:51: Failed to process file duplicati-20200717T125853Z.dlist.zip.aes
{“ClassName”:“System.Net.WebException”,“Message”:“Cannot send a content-body with this verb-type.”,“Data”:null,“InnerException”:{“ClassName”:“System.Net.ProtocolViolationException”,“Message”:“Cannot send a content-body with this verb-type.”,“Data”:null,“InnerException”:null,“HelpURL”:null,“StackTraceString”:” at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in :0 \n at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in :0 \n at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in :0 \n at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0 “,“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:null,“HResult”:-2146233079,“Source”:“System”},“HelpURL”:null,“StackTraceString”:” at Duplicati.Library.Main.AsyncDownloader+AsyncDownloaderEnumerator+AsyncDownloadedFile.get_TempFile () [0x00008] in <8f1de655bd1240739a78684d845cecc8>:0 \n at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x000b0] in <8f1de655bd1240739a78684d845cecc8>:0 ",“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:null,“HResult”:-2146233079,“Source”:“Duplicati.Library.Main”}

I use 2.0.5.1_beta_2020-01-18.

I don’t know why OS makes a difference, but you can read the below for notes and workarounds.

Ubuntu 16.04.6 LTS od4b Cannot send a content-body with this verb-type

In this July 11 error log, errors on verifications are similar to restore errors, in that both download.
No report from the other topic on whether the workarounds worked, but you can try them directly.