Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Eric S.36's avatar
Eric S.36
New member | Level 1
10 years ago

What is causing dropbox error 401

I just created a new app within dropbox, ( I already had code working for a different account  and a different app ) I'm linking the dropbox account in the application delegate

    NSString* appKey = @"mqwun9ewe89n8yla";

    NSString* appSecret = @"07basa4txiewewqo6k";

    NSString *root = kDBRootDropbox;

( these are fake  keys )

and the linking goes ok, then at some later point I try to create a folder with 

    [self.restClient createFolder:@"/TestClient"];

but I keep getting the error

"The operation couldn’t be completed. (dropbox.com error 401.)" UserInfo=0x170c75680 {path=/TestClient, root=dropbox, error=No auth method found.}

I created two different application one with App permissions and one with root dropbox permissions, but I get the erro no matter what. What am I doing wrong?

 

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    The error message is "No auth method found", meaning the API didn't receive an authorization method, which in the case of the iOS Core SDK, as you appear to be using, should be OAuth 1 signing with a valid access token. That should be mostly done for you, as long as you followed the tutorial.

    Can you share the rest of the relevant code? (E.g., where you have the user link the app, set up the session, and set up the client?)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!