Forum Discussion

giullianoa's avatar
giullianoa
Explorer | Level 4
9 years ago

Migration token OAuth 1 to Oauth 2

Good Afternoon 

 

I triyed to update my OAuth 1 token to OAuth 2 through this HTTP request  :

https://api.dropboxapi.com/2/auth/token/from_oauth1

But the response looks like this : 

 

{"error_summary": "invalid_oauth1_token_info/.", "error": {".tag": "invalid_oauth1_token_info"}}

 

This kind of error references to the token information ( key:secret ).

 

The parameter's data  is :

 

$auth = $key.':'.$secret

 

array("oauth1_token"=>$auth,"oauth1_token_secret"=>$secret);

 

But the values was correct !( I think so...)

 

Whats going on ?

 

14 Replies

Replies have been turned off for this discussion
  • giullianoa's avatar
    giullianoa
    Explorer | Level 4
    9 years ago

    Something is stranged to me because the server expect 15 for value to offset. Is this number to small ? Do you think so ?

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    Yes, I would expect the value should be at least the size of one chunk (e.g., if only one chunk succeeded). What chunk size are you using? We generally recommend something much larger than 15, e.g., 8 MB (8388608 bytes).
  • giullianoa's avatar
    giullianoa
    Explorer | Level 4
    9 years ago

    I got it !

     

    I'm using the same as the PHP SDK.

     

    I'm using 4194304. // 4 MB

     

    It could be another thing ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    Can you share some code to reproduce the issue? I'm not sure off hand what the issue may be, but we'll be happy to look into it. Thanks in advance!

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!