Forum Discussion

Cici cici's avatar
Cici cici
Explorer | Level 3
2 years 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.

4 Replies

  • iNeil's avatar
    iNeil
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    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
    2 years ago

    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 Community Moderator rankDropbox Community Moderator
    2 years ago
    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.
  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    Cici cici wrote:

    ..., Failure writing output to destination...

    ...


    Hi Cici cici,

    That error message is NOT Dropbox  (or any other service) related! 🙂

    You have mistake in your script that calls the curl command. The destination file (or other entry in use) is NOT accessible for write for your code - whatever you have pointed using '-o' or '--output' option. That's it. Select another destination place (where your script may write to) or fix the access permission of the current destination. 😉

    Hope this gives direction.

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!