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
raysharp
7 years agoExplorer | Level 3
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.
Greg-DB
Dropbox 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
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
7 years agoExplorer | 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.
- Greg-DB7 years agoDropbox Staff
Are you seeing this for all accounts, or does this only seem to affect specific account(s)? If it's only affecting specific ones, please open an API ticket and share the account IDs for reference. Also, does the call eventually time out, and if so, what output do you get? Thanks in advance!
- raysharp7 years agoExplorer | Level 3
Thank you for your prompt reply.
It's not affect specific account(s) but for all accounts.
we use the same access token by
curl -X POST https://api.dropboxapi.com/2/users/get_space_usage --header "Authorization: Bearer <access token>
The dropbox server return right result.
and we use upload APIhttps://content.dropboxapi.com/2/files/upload
The dropbox server return 200 ok.
but only use APIhttps://api.dropboxapi.com/2/users/get_space_usage
The dropbox server have no reponse.
we wait for a long long time . there is nothing output .
PS. we use curl lib API send post.
- Greg-DB7 years agoDropbox StaffThanks for the additional information. Since this is affecting all accounts, and the same endpoint works when using curl directly on the command line, it sounds like this is specific to how it's being called in your script using the curl lib API.
Can you share that script that has the issue so we can use it to reproduce the issue here? Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!