We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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,877 PostsLatest Activity: 12 months ago
325 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!