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

Forum Discussion

raysharp's avatar
raysharp
Explorer | Level 3
7 years ago

https://api.dropboxapi.com/2/users/get_space_usage no response

Hello. we use Dropbox HTTP V2 API to upload files . all it's ok.

but. there is no response when send

https://api.dropboxapi.com/2/users/get_space_usage

post .

 we don't know why.

  • raysharp's avatar
    raysharp
    Explorer | Level 3

    * About to connect() to api.dropboxapi.com port 443 (#1)
    *   Trying 162.125.7.7...
    * Connected to api.dropboxapi.com (162.125.7.7) port 443 (#1)
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    * SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
    * Server certificate:
    *     subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US
    *     start date: Feb 07 00:00:00 2017 GMT
    *     expire date: Feb 12 12:00:00 2020 GMT
    *     common name: api.dropboxapi.com
    *     issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
    > POST /2/users/get_space_usage HTTP/1.1
    Host: api.dropboxapi.com
    Accept: */*
    Authorization: Bearer <ACCESS_TOKEN>

     

     

    we are waiting for a long time . but no response from the dropbox server

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff
      I just tried this, and it is working properly for me. Are you still seeing this issue? If so, is there anything on your network connection, such as a firewall or proxy, that may be interfering?

      By the way, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:

      https://www.dropbox.com/account/connected_apps

      Or, you can disable just this access token using the API:

      https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
      • raysharp's avatar
        raysharp
        Explorer | Level 3

        Thank you for your prompt reply!

             1.  the network does not matter.

             2.  The access token I post is not correct, so it's security.

             I show the entire process.

         

           [root@iZu1hoqybaaZ new]# ./drop
        * About to connect() to api.dropbox.com port 443 (#0)
        *   Trying 162.125.7.7...
        * Connected to api.dropbox.com (162.125.7.7) port 443 (#0)
        * Initializing NSS with certpath: sql:/etc/pki/nssdb
        *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
          CApath: none
        * SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        * Server certificate:
        *     subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US
        *     start date: Feb 07 00:00:00 2017 GMT
        *     expire date: Feb 12 12:00:00 2020 GMT
        *     common name: api.dropboxapi.com
        *     issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
        > GET /1/oauth/request_token HTTP/1.1
        Host: api.dropbox.com
        Accept: */*
        Authorization: OAuth oauth_version="1.0",  oauth_signature_method="PLAINTEXT", oauth_consumer_key="XXXXX",                             oauth_signature="XXXXXXXX&"

        < HTTP/1.1 200 OK
        < Server: nginx
        < Date: Wed, 07 Feb 2018 09:18:12 GMT
        < Content-Type: application/x-www-form-urlencoded
        < Transfer-Encoding: chunked
        < Connection: keep-alive
        < Cache-Control: no-cache
        < Pragma: no-cache
        < X-Content-Type-Options: nosniff
        < X-Dropbox-Request-Id: 39d92ec6ee1a74da459f4e804ab11d60
        < X-Frame-Options: SAMEORIGIN
        < X-Server-Response-Time: 83
        <
        * Failed writing body (0 != 64)
        * Failed writing data
        * Closing connection 0
        curl_easy_perform() failed: Failed writing received data to disk/application

        err code httpcode == 200
        * About to connect() to api.dropboxapi.com port 443 (#1)
        *   Trying 162.125.7.7...
        * Connected to api.dropboxapi.com (162.125.7.7) port 443 (#1)
        *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
          CApath: none
        * SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        * Server certificate:
        *     subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US
        *     start date: Feb 07 00:00:00 2017 GMT
        *     expire date: Feb 12 12:00:00 2020 GMT
        *     common name: api.dropboxapi.com
        *     issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
        > POST /2/users/get_space_usage HTTP/1.1
        Host: api.dropboxapi.com
        Accept: */*
        Authorization: Bearer XXXXXXXXXXXXXXXX

         

         

         

        and there is no response from the dropbox.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 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!