Can't get token on local PC when "rclone authorize "dropbox" "

What browser are you using?
Did you set the proxy in that browser?

Rclone is just launching a link that opens up in your browser so if your browser can't hit dropbox.com, it won't work.

I set proxy global in the whole windows system, and check the ip address in https://www.ip138.com/ and https://whatismyipaddress.com/ , they show that I'm useing my proxy's ip.
I usually use Firefox, also I have tried Edge, they can hit dropbox.com,
both of them can visit the page
https://www.dropbox.com/1/oauth2/authorize?client_id=5jcck7diasz0rqy&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=files.metadata.write+files.content.write+files.content.read+sharing.write+account_info.read&state=LBlntQamWeZZBqI5ZXRfZA&token_access_type=offline,

and jump to the following page after I click the “Allow” button.
http://localhost:53682/?state=LBlntQamWeZZBqI5ZXRfZA&code=6R8CGTn2poIAAAAAAAAAUCTkFwOwGVPM9Sv6IBJRhkc
but don't return token on windows powershell.

I set proxy global, but I'm not sure if the proxy software has some hidden proxy rules. What will the browser connect after I click the “Allow” button on the page, maybe I can test it

Similar to this process, there's no problem when authorizing “onedrive”

PS F:\rclone-v1.56.1-windows-amd64> .\rclone authorize "onedrive" -vv
2021/10/03 09:59:45 DEBUG : rclone: Version "v1.56.1" starting with parameters ["F:\\rclone-v1.56.1-windows-amd64\\rclone.exe" "authorize" "onedrive" "-vv"]
2021/10/03 09:59:45 DEBUG : **temp-fs**: config in: state="", result=""
2021/10/03 09:59:45 NOTICE: Config file "C:\\Users\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
2021/10/03 09:59:45 DEBUG : OAuth only is set - overriding return state
2021/10/03 09:59:45 DEBUG : **temp-fs**: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/10/03 09:59:45 DEBUG : **temp-fs**: config in: state="*oauth,,,", result=""
2021/10/03 09:59:45 DEBUG : **temp-fs**: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/10/03 09:59:45 DEBUG : **temp-fs**: config in: state="*oauth-confirm,,,", result=""
2021/10/03 09:59:45 DEBUG : Auto confirm is set, choosing default "true" for state "*oauth-islocal,,,", override by setting config parameter "config_is_local"
2021/10/03 09:59:45 DEBUG : **temp-fs**: config out: out=&{State:*oauth-islocal,,, Option:<nil> OAuth:<nil> Error: Result:true}, err=<nil>
2021/10/03 09:59:45 DEBUG : **temp-fs**: config in: state="*oauth-islocal,,,", result="true"
2021/10/03 09:59:45 DEBUG : **temp-fs**: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/10/03 09:59:45 DEBUG : **temp-fs**: config in: state="*oauth-do,,,", result=""
2021/10/03 09:59:45 DEBUG : Starting auth server on 127.0.0.1:53682
2021/10/03 09:59:46 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=fesagrPGCjn7iQzStSW3fA
2021/10/03 09:59:46 NOTICE: Log in and authorize rclone for access
2021/10/03 09:59:46 NOTICE: Waiting for code...
2021/10/03 09:59:46 DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=b15665d9-eda6-4092-8539-0eec376afd59&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+offline_access+Sites.Read.All&state=fesagrPGCjn7iQzStSW3fA
2021/10/03 09:59:53 DEBUG : Received GET request on auth server to "/"
2021/10/03 09:59:53 NOTICE: Got code
2021/10/03 09:59:53 DEBUG : Closing auth server
2021/10/03 09:59:53 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2021/10/03 09:59:54 DEBUG : **temp-fs**: Saved new token in config file
2021/10/03 09:59:54 DEBUG : **temp-fs**: config out: out=&{State:*oauth-done,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/10/03 09:59:54 DEBUG : **temp-fs**: config in: state="*oauth-done,,,", result=""
2021/10/03 09:59:54 DEBUG : **temp-fs**: config out: out=&{State: Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
Paste the following into your remote machine --->
{"access_token":"eyJ0eXAiOiJKV1QiLCJub25jZSI6ImhFMGFFeU5OQ0pkeS0zcTlrMG5mWkdxRjVpN0dpanpvekFsVWJIR2Zqb2MiLCJhbGciOiJSUzI1NiIsIng1dCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8wNzliMTgwYi01ZWYxLTRlN2MtYjI3MS0wYWUyY2MwYzQwMTEvIiwiaWF0IjoxNjMzMjI2MDk1LCJuYmYiOjE2MzMyMjYwOTUsImV4cCI6MTYzMzIyOTk5NSwiYWNjdCI6MCwiYWNyIjoiMSIsImFpbyI6IkUyWmdZRENjZnVTNDVjSTZvMmxMaFBsbE1pUnZ1S29weU41Tk1Kem1ObTFDOW5NdHd4Y0EiLCJhbXIiOlsicHdkIl0sImFwcF9kaXNwbGF5bmFtZSI6InJjbG9uZSIsImFwcGlkIjoiYjE1NjY1ZDktZWRhNi00MDkyLTg1MzktMGVlYzM3NmFmZDU5IiwiYXBwaWRhY3IiOiIxIiwiZmFtaWx5X25hbWUiOiJUd2V0aCIsImdpdmVuX25hbWUiOiJGZWIiLCJpZHR5cCI6InVzZXIiLCJpcGFkZHIiOiI5MS4yMTkuMjE1LjIwIiwibmFtZSI6IkZlYiBUd2V0aCIsIm9pZCI6Ijg3YWFmZjE0LTA2Y2YtNGIwZi05MjcxLTYzM2QwYjMxYTgxMyIsInBsYXRmIjoiMyIsInB1aWQiOiIxMDAzMjAwMTg0QzY5NTBEIiwicmgiOiIwLkFVWUFDeGliQl9GZWZFNnljUXJpekF4QUVkbGxWckdtN1pKQWhUa083RGRxX1ZsR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at6z19na6xFsI4wp1BzSdgIOKduIZbFsV7E2pbghjpwre4Pzrcc7kKWEOn0fVKaS4eIhbQ","expiry":"2021-10-03T10:59:53.0041526+08:00"}
<---End paste
2021/10/03 09:59:54 DEBUG : rclone: Version "v1.56.1" finishing with parameters ["F:\\rclone-v1.56.1-windows-amd64\\rclone.exe" "authorize" "onedrive" "-vv"]

Got the same problem. No problem with OneDrive either, just Dropbox.

hi,
i am able to run rclone authorize dropbox -vv and get the token.

  • windows 11
  • mullvad vpn which offers a socks5 proxy server using 10.8.0.1:1080
  • firefox, hardcoded the proxy server into firefox GUI

hello and welcome to the forum,

without any details, cannot be sure what exact problem you are experiencing

can you post

  • config file, redact id/secret/token/password
  • rclone command
  • rclone debug log
  • output of rclone version

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