Hello,
I am downloading files with the Dropbox API correctly using "https://content.dropboxapi.com/2/files/download"
However, when the file download takes longer than 1 hour (exactly), the Dropbox server closes the connection and the download is broken. I tested it with several tools with the same result, also using directly cUrl.
You can reproduce the issue with the following steps:
- Upload a file larger than 700MB to your Dropbox root folder named lagefile.bin
- Create the folder C:\Tests on your local drive
- Execute the following command
curl -X POST https://content.dropboxapi.com/2/files/download --header "Authorization: Bearer *****replace with your access token******" --header "Dropbox-API-Arg: {\"path\": \"/largefile.bin\"}" --output C:\Tests\largefile.bin --limit-rate 120K
After exactly 1 hour (and a few seconds) the connection the following error is displayed:
curl: (56) schannel: server closed abruptly (missing close_notify)
In the cUrl command I am using --limit-rate to make sure the download takes more than 1 hour
I did not see any limit in the API documentation about the time that can take a download, so I think it might be a bug on the Dropbox server API.