# Error connecting to Dropbox

**URL:** https://forum.duplicati.com/t/error-connecting-to-dropbox/13989
**Category:** Support
**Created:** [February 22, 2022, 1:02pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989 "2022-02-22T13:02:35Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [February 22, 2022, 1:02pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/1 "2022-02-22T13:02:35Z")

</div>

Hi

While trying to set Dropbox as backup destination storage type, with the generated AuthID, connection test procedure encounters such an error:

`Failed to connect: Non-json response: Error in call to API function "files/list_folder": The given OAuth 2 access token is malformed.`

I tried so many cases, but didn’t succeed!  
Any suggestions would be great…

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [February 22, 2022, 6:50pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/2 "2022-02-22T18:50:38Z")

</div>

Welcome to the forum @Hadi_Asgari

> [@Hadi\_Asgari](#):
>
> with the generated AuthID

Does this mean it’s a new backup, and you have no others on Dropbox?

> [@Hadi\_Asgari](#):
>
> Any suggestions would be great

If you have a working Dropbox backup (or an [export](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#exporting-a-backup-job-configuration) of it), try old AuthID.

[Duplicati - Dropbox Backup - Short lived token expires](https://forum.duplicati.com/t/duplicati-dropbox-backup-short-lived-token-expires/13763/9) supported new Dropbox need two days ago.  
Possibly there’s a problem with the with the new code. There’s a parallel situation in GitHub issues:  
[[Dropbox oauth] expired\_access\_token error from Dropbox short-lived access tokens #4667](https://github.com/duplicati/duplicati/issues/4667)

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [February 23, 2022, 6:56am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/3 "2022-02-23T06:56:36Z")

</div>

Thanks…  
Yes, this is the first time and there is no working Dropbox backup yet.  
So, is there anything to do, or we should just wait until the project developers work on the code?

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [February 23, 2022, 12:41pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/4 "2022-02-23T12:41:10Z")

</div>

> [@Hadi\_Asgari](#):
>
> Yes, this is the first time and there is no working Dropbox backup yet.  
> So, is there anything to do

Based on the first forum report, Dropbox doing their announced change broke new users mid-January.  
Unless you wish to do some developer/network level analysis (challenging) you probably need to wait.

If you’re eager to use Dropbox in hope of future fix, you might be able to use a [temporary rclone setup](https://forum.duplicati.com/t/duplicati-dropbox-backup-short-lived-token-expires/13763/7).

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [February 23, 2022, 9:18pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/5 "2022-02-23T21:18:46Z")

</div>

@Hadi_Asgari I have added [a fix to the code](https://github.com/duplicati/duplicati/pull/4684), but it will be a little while before an updated version is available.

---

<div class="post-metadata">

### Author: ![User123](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@User123](https://forum.duplicati.com/u/User123)
#### Post date: [February 24, 2022, 5:49pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/6 "2022-02-24T17:49:03Z")

</div>

Hi Hadi\_Asgari we’re also experiencing the same issue regarding the authentication process & dropbox. Great to hear you’ve worked the code. Any idea as to timescales days, weeks or months?  
Thanks

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [February 27, 2022, 8:04am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/7 "2022-02-27T08:04:00Z")

</div>

> [@User123](#):
>
> Any idea as to timescales days, weeks or months?

The fix is ready to be deployed, but the code signing certificate has expired, so I need to purchase a new one first. That usually takes a week or so.

---

<div class="post-metadata">

### Author: ![GargFunk](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/58956e/32.png) [@GargFunk](https://forum.duplicati.com/u/GargFunk)
#### Post date: [March 12, 2022, 3:00am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/8 "2022-03-12T03:00:04Z")

</div>

Any update on this? We were attempting to restore a backup and can’t set up the new system to access our backups.

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [March 12, 2022, 8:56am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/9 "2022-03-12T08:56:46Z")

</div>

No update. I am still waiting for verification before I can get a new certificate (it is always a hassle).

I can build an unsigned version and attach here if it helps?

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [March 12, 2022, 2:40pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/10 "2022-03-12T14:40:01Z")

</div>

> [@kenkendk](#):
>
> I can build an unsigned version and attach here if it helps?

It would be beneficial for us, if you would do that!  
😃  
Specially if it could be deployed in Docker, somehow!  
😅

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [March 13, 2022, 7:49am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/11 "2022-03-13T07:49:06Z")

</div>

I have put up a build here:

> **[Release v2.0.6.101-2.0.6.101\_canary\_2022-03-13 · duplicati/duplicati](https://github.com/duplicati/duplicati/releases/tag/v2.0.6.101-2.0.6.101_canary_2022-03-13)**
>
> NOTE: This is a preliminary build that is not signed with AuthentiCode.
> It is primarily intended for users that need access to Dropbox which stopped working after an update.
> A signed version will b...

It is signed with GPG but not Authenticode. If you run it on Windows you can expect it to trigger Antivirus warnings. Other platforms should not give any problems.

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [March 13, 2022, 3:01pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/12 "2022-03-13T15:01:11Z")

</div>

Is there a way to utilize it on a previously made Duplicati Docker container?  
For example replacing former files on the Container made using the last Duplicati Docker Image, with the new files, on:

`/source/hostfiles/var/lib/docker/overlay2/49c6e8495c1685858bf8fc158a9153a564fb1b6bd98f39895df26c8bfe8399a8/diff/app/duplicati`

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [March 13, 2022, 4:22pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/13 "2022-03-13T16:22:52Z")

</div>

I guess you can just extract the files and mount the /app/duplicati folder?

Otherwise, I have just updated the Docker images, so you should be able to update the image.

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [March 15, 2022, 11:45am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/14 "2022-03-15T11:45:29Z")

</div>

I pulled the new Docker Image (duplicati/duplicati:2.0.6.101\_canary\_2022-03-13), and deployed it on a new container, but the error exists again, while trying to test the connection to Dropbox:

`Failed to connect: Non-json response: Error in call to API function "files/list_folder": The given OAuth 2 access token is malformed.`

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [March 16, 2022, 7:10am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/15 "2022-03-16T07:10:20Z")

</div>

I tried it again today, and here is the new error:

`Failed to connect: Failed to authorize using the OAuth service: Forbidden. If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=dropbox`

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [March 16, 2022, 11:56am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/16 "2022-03-16T11:56:44Z")

</div>

…After I tried more and more, sometimes it returns the above error, and other times, it just stucks on “Testing Connection…”  
Even trying to test with “Google Drive”, or “Google Cloud Storage”, has same results, or after a long time it leads to “Connection Failed” message!

---

<div class="post-metadata">

### Author: ![Hadi\_Asgari](https://forum.duplicati.com/user_avatar/forum.duplicati.com/hadi_asgari/32/6842_2.png) [@Hadi\_Asgari](https://forum.duplicati.com/u/Hadi_Asgari)
#### Post date: [April 5, 2022, 7:58am UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/17 "2022-04-05T07:58:46Z")

</div>

Am I doing anything wrong?!..

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [April 6, 2022, 8:23pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/18 "2022-04-06T20:23:15Z")

</div>

> [@GargFunk](#):
>
> Any update on this? We were attempting to restore a backup and can’t set up the new system to access our backups.

Finally! I got the a new certificate and released a signed version. Hope this helps, otherwise, DM me.

> [@Hadi\_Asgari](#):
>
> …After I tried more and more, sometimes it returns the above error, and other times, it just stucks on “Testing Connection…”  
> Even trying to test with “Google Drive”, or “Google Cloud Storage”, has same results, or after a long time it leads to “Connection Failed” message!

It sounds like a general connection issue.

I have released a new version that is signed and follows the normal release process. I hope this fixes the issue for you.

> [@Hadi\_Asgari](#):
>
> Failed to connect: Non-json response: Error in call to API function “files/list\_folder”: The given OAuth 2 access token is malformed.

Does your Dropbox authid contain a colon character?  
(i.e.: `1234:5678`)

---

<div class="post-metadata">

### Author: ![FrancYescO](https://forum.duplicati.com/user_avatar/forum.duplicati.com/francyesco/32/7007_2.png) [@FrancYescO](https://forum.duplicati.com/u/FrancYescO)
#### Post date: [April 19, 2022, 4:07pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/19 "2022-04-19T16:07:28Z")

</div>

> Does your Dropbox authid contain a colon character?  
> (i.e.: `1234:5678` )

yes, and i’m having the same @Hadi_Asgari issue on latest docker image.

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [April 19, 2022, 6:55pm UTC](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989/20 "2022-04-19T18:55:46Z")

</div>

Welcome to the forum @FrancYescO

While no response came here, I asked about success on the GitHub issue, and got:

[[Dropbox oauth] expired\_access\_token error from Dropbox short-lived access tokens #4667](https://github.com/duplicati/duplicati/issues/4667#issuecomment-1097107655)

> I just installed 2.0.6.102 and was able to successfully run a new dropbox backup!

but I don’t know where that leaves things. Is it possible that this only fails in Docker?  
If someone wants to head over to GitHub, maybe you can look for any differences…

[Next page](https://forum.duplicati.com/t/error-connecting-to-dropbox/13989.md?page=2)
