You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
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
Dropbox 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.
Chetral
6 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 developers
797 PostsLatest Activity: 2 days agoIf 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!