Purpose of --dropbox-client-credentials?

What is the problem you are having with rclone?

I'm trying to use --dropbox-client-credentials, but it doesn't seem to work. More to the point, I don't think it can work, because as far as I can tell, Dropbox does not support the client_credentials OAuth flow.

Assuming Dropbox does not, in fact, support this flow, what is the purpose of the flag?

Run the command 'rclone version' and share the full output of the command.

rclone v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
- os/version: Microsoft Windows 11 Pro 24H2 24H2 (64 bit)
- os/kernel: 10.0.26100.4349 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.3
- go/linking: static
- go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone.exe --dump bodies lsf Dropbox:

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Dropbox]
type = dropbox
client_id = XXX
client_secret = XXX
token =
client_credentials = true

A log from the command that you were trying to run with the -vv flag

2025/06/17 12:31:48 NOTICE: Automatically setting -vv as --dump is enabled
2025/06/17 12:31:48 DEBUG : rclone: Version "v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency" starting with parameters ["C:\\Users\\Chad\\Documents\\PowerShell\\Modules\\TMCTools\\bin\\rclone.exe" "--retries" "0" "--low-level-retries" "0" "--dump" "bodies" "lsf" "Dropbox:"]
2025/06/17 12:31:48 DEBUG : Creating backend with remote "Dropbox:"
2025/06/17 12:31:48 DEBUG : Using config file from "C:\\Users\\Chad\\AppData\\Roaming\\rclone\\rclone.conf"
2025/06/17 12:31:48 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/06/17 12:31:48 DEBUG : Dropbox: Failed to read token out of config file
2025/06/17 12:31:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:48 DEBUG : HTTP REQUEST (req 0xc00037f900)
2025/06/17 12:31:48 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 127
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:48 DEBUG : HTTP RESPONSE (req 0xc00037f900)
2025/06/17 12:31:48 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:48 GMT
Server: envoy
X-Dropbox-Request-Id: bbc3c39f93804404a9c000abeb27d17a
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:48 DEBUG : HTTP REQUEST (req 0xc00046cdc0)
2025/06/17 12:31:48 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 183
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:48 DEBUG : HTTP RESPONSE (req 0xc00046cdc0)
2025/06/17 12:31:48 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:48 GMT
Server: envoy
X-Dropbox-Request-Id: f5049ec19912438da79ea3eb889bbf9e
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:48 DEBUG : Dropbox: Token refresh failed try 1/5: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:49 DEBUG : Dropbox: Failed to read token out of config file
2025/06/17 12:31:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:49 DEBUG : HTTP REQUEST (req 0xc0003f23c0)
2025/06/17 12:31:49 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 127
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:49 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:49 DEBUG : HTTP RESPONSE (req 0xc0003f23c0)
2025/06/17 12:31:49 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:49 GMT
Server: envoy
X-Dropbox-Request-Id: 5c6cc64a71fb4bb1be63c21f782da2f6
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:49 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:49 DEBUG : HTTP REQUEST (req 0xc00046cc80)
2025/06/17 12:31:49 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 183
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:50 DEBUG : HTTP RESPONSE (req 0xc00046cc80)
2025/06/17 12:31:50 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:49 GMT
Server: envoy
X-Dropbox-Request-Id: 32f3ca6ee2a64094ab6b123ca67eb4ea
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:50 DEBUG : Dropbox: Token refresh failed try 2/5: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:51 DEBUG : Dropbox: Failed to read token out of config file
2025/06/17 12:31:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:51 DEBUG : HTTP REQUEST (req 0xc0004983c0)
2025/06/17 12:31:51 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 127
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:51 DEBUG : HTTP RESPONSE (req 0xc0004983c0)
2025/06/17 12:31:51 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:50 GMT
Server: envoy
X-Dropbox-Request-Id: dd4b52dc40db4fe395b8ac81c4927327
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:51 DEBUG : HTTP REQUEST (req 0xc000499180)
2025/06/17 12:31:51 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 183
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:51 DEBUG : HTTP RESPONSE (req 0xc000499180)
2025/06/17 12:31:51 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:50 GMT
Server: envoy
X-Dropbox-Request-Id: fe2a5e2622c44d5baee83160969d7e50
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:51 DEBUG : Dropbox: Token refresh failed try 3/5: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:52 DEBUG : Dropbox: Failed to read token out of config file
2025/06/17 12:31:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:52 DEBUG : HTTP REQUEST (req 0xc00037e8c0)
2025/06/17 12:31:52 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 127
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:52 DEBUG : HTTP RESPONSE (req 0xc00037e8c0)
2025/06/17 12:31:52 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:51 GMT
Server: envoy
X-Dropbox-Request-Id: 3d5d3f9629124ea1b9d7433cce4ca1a9
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:52 DEBUG : HTTP REQUEST (req 0xc00037fa40)
2025/06/17 12:31:52 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 183
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:52 DEBUG : HTTP RESPONSE (req 0xc00037fa40)
2025/06/17 12:31:52 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:51 GMT
Server: envoy
X-Dropbox-Request-Id: 6af0cc2327d34ed985fa43e5b2207af0
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:52 DEBUG : Dropbox: Token refresh failed try 4/5: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:53 DEBUG : Dropbox: Failed to read token out of config file
2025/06/17 12:31:53 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:53 DEBUG : HTTP REQUEST (req 0xc0005003c0)
2025/06/17 12:31:53 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 127
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:53 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:53 DEBUG : HTTP RESPONSE (req 0xc0005003c0)
2025/06/17 12:31:53 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:53 GMT
Server: envoy
X-Dropbox-Request-Id: 7ba8f2dfdcd342a69c1a2c5454cb60f6
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:53 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:53 DEBUG : HTTP REQUEST (req 0xc000501180)
2025/06/17 12:31:53 DEBUG : POST /1/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.70.0-beta.8738.339ada4f8.fix-8545-onedrive-consistency
Content-Length: 183
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read
2025/06/17 12:31:53 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/06/17 12:31:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:53 DEBUG : HTTP RESPONSE (req 0xc000501180)
2025/06/17 12:31:53 DEBUG : HTTP/2.0 500 Internal Server Error
Content-Length: 95
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/json
Date: Tue, 17 Jun 2025 17:31:53 GMT
Server: envoy
X-Dropbox-Request-Id: e828431cddb74939aad5a9f68b4c60fe
X-Dropbox-Response-Origin: far_remote

{"error": "The server has either erred or is incapable of performing the requested operation."}
2025/06/17 12:31:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/06/17 12:31:53 DEBUG : Dropbox: Token refresh failed try 5/5: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:54 ERROR : : error listing: Post "https://api.dropboxapi.com/2/files/list_folder": couldn't fetch token: oauth2: "The server has either erred or is incapable of performing the requested operation."
2025/06/17 12:31:54 DEBUG : 6 go routines active
2025/06/17 12:31:54 INFO  : Dropbox root '': Committing uploads - please wait...
2025/06/17 12:31:54 NOTICE: Failed to lsf with 2 errors: last error was: error in ListJSON: Post "https://api.dropboxapi.com/2/files/list_folder": couldn't fetch token: oauth2: "The server has either erred or is incapable of performing the requested operation."

Rclone has a common oauth framework for all oauth providers and we added client_credentials to that relatively recently. The provider may not support it though and it sounds like Dropbox doesn't.

Thanks for the reply, Nick. Does it make sense to note in the doc that the flag doesn't work for Dropbox and is there for if/when that flow is supported by the backend?

Thanks @chscott I have added a note in the docs that it is not supported by every backend.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.