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's avatar
Chetral
Explorer | Level 4
6 years ago

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...
  • Greg-DB's avatar
    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.