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
ShinehahGnolaum
7 years agoHelpful | Level 7
files.listFolder error code -999 cancelled
I have the following code:
let client = DropboxClient(accessToken: "<ACCESS_TOKEN>") print("!!! client=", client) client.files.listFolder(path: "").response { response, error in if let result = response { print("Folder contents:") for entry in result.entries { print(entry.name) } } else { print(error!) } } }
I'm getting the following messages in my debug window:
!!! client= SwiftyDropbox.DropboxClient Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://api.dropbox.com/2/files/list_folder, NSLocalizedDescription=cancelled, NSErrorFailingURLKey=https://api.dropbox.com/2/files/list_folder} 2018-08-02 01:14:51.190174-0500 Gnolaum[38319:28928969] Task <DB6BC310-C929-4503-9903-DA5EBBAA9638>.<1> finished with error - code: -999
What does that error mean and how do I fix it?
[Cross-linking for reference: https://github.com/dropbox/SwiftyDropbox/issues/227 ]
It sounds like you already found this thread which should offer some insight:
https://www.dropboxforum.com/t5/API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192322#M24501
Let me know if you're still having trouble.
By the way, you should never post your access token publicly. I redacted them from your posts, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/connected_apps
Or, you can disable just this access token using the API:
https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke or https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/revoke or https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/AuthRoutes.html#/s:FC13SwiftyDropbox10AuthRoutes11tokenRevokeFT_GCS_10RpcRequestCS_14VoidSerializerS2__
Also, in the future, please refrain from posting the same question to us in multiple places, as it makes it harder to keep track of. Thanks!
- Greg-DBDropbox Staff
[Cross-linking for reference: https://github.com/dropbox/SwiftyDropbox/issues/227 ]
It sounds like you already found this thread which should offer some insight:
https://www.dropboxforum.com/t5/API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192322#M24501
Let me know if you're still having trouble.
By the way, you should never post your access token publicly. I redacted them from your posts, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/connected_apps
Or, you can disable just this access token using the API:
https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke or https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/revoke or https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/AuthRoutes.html#/s:FC13SwiftyDropbox10AuthRoutes11tokenRevokeFT_GCS_10RpcRequestCS_14VoidSerializerS2__
Also, in the future, please refrain from posting the same question to us in multiple places, as it makes it harder to keep track of. Thanks!- ShinehahGnolaumHelpful | Level 7OK. Thank you for your patience and your help.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,883 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!