Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.
Forum Discussion
Chetral
6 years agoExplorer | Level 4
Downloading a file, getting error in DropboxTransportClient.swift, line 200
Hi all,
I've checked the forum and didn't find an answer.
Overview: my app works with a SQLite db. I have an option to store the DB in DropBox (only store it, not working on it).
The user downl...
- 6 years ago
It looks like the issue is that the SDK expects a 'response' handler on the 'files.download' call, but you're not supplying one.
I'll ask the team to fix this up to fail gracefully in this case, but as a workaround (and as a best practice in general), you should add a 'response' handler, e.g., as shown here:
https://github.com/dropbox/SwiftyDropbox#download-style-request
Also, I recommend doing so for all of your calls so you can add some error handling. Otherwise, you won't know if/why a call failed.
Greg-DB
6 years agoDropbox Staff
It looks like the issue is that the SDK expects a 'response' handler on the 'files.download' call, but you're not supplying one.
I'll ask the team to fix this up to fail gracefully in this case, but as a workaround (and as a best practice in general), you should add a 'response' handler, e.g., as shown here:
https://github.com/dropbox/SwiftyDropbox#download-style-request
Also, I recommend doing so for all of your calls so you can add some error handling. Otherwise, you won't know if/why a call failed.
- Chetral6 years agoExplorer | Level 4
Thanks Greg, I added response and error handling and now it works again!!!
You're the best ;)
Marco "Chetral" Pirola
About Discuss Dropbox Developer & API
Make connections with other developers799 PostsLatest Activity: 5 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!