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's avatar
ShinehahGnolaum
Helpful | Level 7
7 years ago

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?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,883 PostsLatest Activity: 2 days ago
326 Following

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 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!