Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files.listFolder error code -999 cancelled #227

Closed
Shinehah-Gnolaum opened this issue Aug 2, 2018 · 1 comment
Closed

files.listFolder error code -999 cancelled #227

Shinehah-Gnolaum opened this issue Aug 2, 2018 · 1 comment

Comments

@Shinehah-Gnolaum
Copy link

Shinehah-Gnolaum commented Aug 2, 2018

I have the following code:

let client = DropboxClient(accessToken: "<ACCESS_TOKEN>")

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 get the following messages in the 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 .<1> finished with error - code: -999

What do those messages mean and how do I fix the errors?

@greg-db
Copy link
Contributor

greg-db commented Aug 2, 2018

[Cross-linking for reference: https://www.dropboxforum.com/t5/API-Support-Feedback/files-listFolder-error-code-999-cancelled/td-p/288487 ]

I'll follow up on your forum thread.

@greg-db greg-db closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants