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
vewert
8 years agoExplorer | Level 4
SwiftyDropbox, routeError not being generated
I'm just getting started with SwiftyDropbox, and am trying to get a better handle on Error Handling. I'm making a call to the /list_folder route, using dbClient.files.listFolder. If I put in a valid ...
- 8 years ago
It looks like the issue is just how you're checking the .routeError case. Instead of this:
case .routeError(let boxed, let requestId, nil, nil):
do this:
case .routeError(let boxed, _, _, let requestId):
or more completely:
case .routeError(let boxed, let userMessage, let errorSummary, let requestId):
Greg-DB
8 years agoDropbox Staff
It looks like the issue is just how you're checking the .routeError case. Instead of this:
case .routeError(let boxed, let requestId, nil, nil):
do this:
case .routeError(let boxed, _, _, let requestId):
or more completely:
case .routeError(let boxed, let userMessage, let errorSummary, let requestId):
- vewert8 years agoExplorer | Level 4
Yes, that was the problem, thanks! I'm pretty new to this type of construct, with these switch cases that have parameters.
I was trying to find the documentation for CallError and .routeError but couldn't find it, and am still a little unclear about whole "boxed" thing.
Thanks.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 2 hours 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!