We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Carmine S.1
11 years agoNew member | Level 1
SwiftyDropbox assertion error
Hello,
I've been trying the preview of SwiftyDropbox, and while it has been working very well previously, I'm now getting a runtime error in the deserialize() method of the ListFolderFooterSerializer class: "assertion failed: Type error deserializing: file /Files.swift, line 352 (lldb)"
In my latest attempt to recreate the error, I've set up an Xcode workspace & project exactly as detailed in the Swift SDK 2.0 blog post (https://blogs.dropbox.com/developers/2015/05/try-out-swiftydropbox-the-new-swift-sdk-for-dropbox-api-v2/) and the same error occurs. The sample code which causes the runtime error is also directly from the example in the blog post where it attempts to retrieve and display app folder contents.
// List folder
client.filesListFolder(path: "").response { response, error in
if let result = response {
println("Folder contents:")
for entry in result.entries {
println(entry.name)
}
} else {
println("Error: \(error!)")
}
}
It's strange because all of my testing with this API has gone fine until this week and the runtime error manifests in each of my test apps. I understand it could be a configuration issue with my DB account, but I'm not sure how to go about isolating it. Has anyone else run into this error? Are there any other troubleshooting steps I should try? Thanks!
4 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
SwiftyDropbox is actually currently broken... we just yesterday made some changes to the API and will need to publish an updated SDK (hopefully tomorrow). So stay tuned and watch the blog/GitHub for an updated SDK.
- Leah C.111 years agoNew member | Level 1
Hi Carmine,
Just yesterday we changed API v2, which broke the SwiftyDropbox SDK. Sorry about that! We're working on an update to SwiftyDropbox and will release version 0.2 in the next day or two. Again, sorry for the hassle and it's not your fault at all!
Leah
- Carmine S.111 years agoNew member | Level 1
Thanks for the responses. That's what I was hoping to be the cause. Thanks for improving a great product!
- Leah C.111 years agoNew member | Level 1
Hi Carmine - I just wanted to let you know that there's a new version of SwiftyDropbox that works with the v2 updates: https://blogs.dropbox.com/developers/2015/06/swiftydropbox-v0-2/
The previous blog post has also been updated with new sample code.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!