You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Cici cici's avatar
Cici cici
Explorer | Level 3
5 months ago

Activation failure

Recently, I can't obtain "access token" through this url (https://api.dropbox.com/oauth2/token) so that I've been unable to activate the cloud.

The device's curl always shows : * Resolving timed out after 5009 milliseconds. But my network status is normal.
Please tell me how to analyze. Thank u very much.
  • iNeil's avatar
    iNeil
    Icon for Dropbox Engineer rankDropbox Engineer

    Hello Cici cici,

     

    I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: 

     

    - the name and version number of the platform and SDK/library you are using, if any

    - the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)

    - the full text of any error or unexpected output

     

    Alternatively, you can open an API ticket with the above information using the following link:

     

    https://www.dropbox.com/developers/contact

    • Cici cici's avatar
      Cici cici
      Explorer | Level 3

      Hi iNeil.

      Thank you so much for your assistance. I only used the api to get the token and authenticate, without using any sdk/ library, and now I can finally get the 'AC token 'after extending the curl timeout, but at the same time  when i want to get other informations by (

      ), there are many error codes such as: 400, 404, 0, Failure writing output to destination...

      • iNeil's avatar
        iNeil
        Icon for Dropbox Engineer rankDropbox Engineer
        Hello Cici cici,

        Would you be able to provide the full cURL command that you are using while executing the 2/users/get_space_usage endpoint?

        I have tested the 2/users/get_space_usage endpoint, and I'm unable to replicate the issue. Please test the conditions using the following cURL command for the 2/users/get_space_usage endpoint.

        curl -v -X POST https://api.dropboxapi.com/2/users/get_space_usage \
          --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
          --header 'Content-Type: application/json' \
          --data 'null'
        Please note, you can also test the endpoint while using our Dropbox API explorer.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 4 days ago
333 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!