Google Drive - Shared Drive path error

Hi,
Running Duplicati 2.0.6.3_beta_2021-06-17
I have some problems with Google Drive/Team Drive.
Want to use Team Drive as destination, but if I add any PATH on Drive or Shared Drive, I get an error. I basically tried any possible way to add the folder name, like /test but if anything is written in path field the testing fails (tried many combinations, like \test \test //test/, etc.)
They all give me an error. If I leave the path empty, it works. But then Duplicati puts all the files in the root of the Shared Drive.

Any ideas?

System.Net.WebException: The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <91935ad653254a93b9d73a9f8f2f7a2d>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <91935ad653254a93b9d73a9f8f2f7a2d>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <2a3ee711c7c04f6c957360f2cf183a7f>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <2a3ee711c7c04f6c957360f2cf183a7f>:0 
  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c9] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.JSONWebHelper.ReadJSONResponse[T] (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x00000] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.JSONWebHelper.GetJSONData[T] (System.String url, System.Action`1[T] setup, System.Action`1[T] setupbodyreq) [0x00024] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.Backend.GoogleDrive.GoogleDrive+<ListFolder>d__42.MoveNext () [0x000fd] in <19fe1fc6864a43d3bde1faa83aaaa516>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0003d] in <798dd06330af4ca3886d7d2be5573af7>:0 
  at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00033] in <798dd06330af4ca3886d7d2be5573af7>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <798dd06330af4ca3886d7d2be5573af7>:0 
  at Duplicati.Library.Backend.GoogleDrive.GoogleDrive.GetFolderId (System.String path, System.Boolean autocreate) [0x0004c] in <19fe1fc6864a43d3bde1faa83aaaa516>:0 
  at Duplicati.Library.Backend.GoogleDrive.GoogleDrive.get_CurrentFolderId () [0x0000d] in <19fe1fc6864a43d3bde1faa83aaaa516>:0 
  at Duplicati.Library.Backend.GoogleDrive.GoogleDrive+<List>d__17.MoveNext () [0x00040] in <19fe1fc6864a43d3bde1faa83aaaa516>:0 
  at Duplicati.Library.Interface.BackendExtensions.TestList (Duplicati.Library.Interface.IBackend backend) [0x00017] in <fd3642a459884bd9a2412b4eda050109>:0 
  at Duplicati.Library.Backend.GoogleDrive.GoogleDrive.Test () [0x00000] in <19fe1fc6864a43d3bde1faa83aaaa516>: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
System.ObjectDisposedException: Cannot write to a closed TextWriter.
  at System.IO.StreamWriter.Flush (System.Boolean flushStream, System.Boolean flushEncoder) [0x00008] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.StreamWriter.Flush () [0x00006] in <254335e8c4aa42e3923a8ba0d5ce8650>: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

I don’t use Google Drive so I’m just guessing here, but did you try “test” without any slashes at all?

For reference, backslashes are almost always the wrong slash to use unless you are specifying a UNC path. Most other back ends use forward slashes. Some don’t like leading or trailing forward slashes.

Thanks for your help.
It turns out that it was not Duplicati related. I run in Docker and with reverse proxy it doesn’t work for some reason. I moved to host network without reverse proxy (as I don’t want WAN access) and it works.

2 Likes