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

Forum Discussion

App4G's avatar
App4G
Helpful | Level 6
4 years ago

How to access the missing_scope Error Messages that gets returned

There are 2 issues I would like to get some clarity on. Environment: Xcode 12 / IOS 14.4 / SwiftyDropbox I want to download a file from a shared scoped dropbox Folder. Previously I did not enable t...
  • Greg-DB's avatar
    4 years ago

    1: Here's an example of how you can drill down into this kind of error:

    switch callError as CallError {
    case .authError(let authError, let userMessage, let errorSummary, let requestId):
        switch authError {
        case .missingScope(let tokenScopeError):
            print("Missing scope error: \(tokenScopeError)")
            print("The required scope is: \(tokenScopeError.requiredScope)")
        default:
            print("other AuthError omitted for brevity of example")
        }
    default:
        print("other CallError omitted for brevity of example")
    }

    2: No, there's just the authorization flow as documented here.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,878 PostsLatest Activity: 9 hours 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!