When I attempt to configure RClone it doesn't accept the code for headerless authorisation
What is your rclone version (output from rclone version
)
Version 1.56.2
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run
rclone configure
The rclone config contents with secrets removed.
[Office365-OneDrive]
type = onedrive
client_id = 1111-2222-3333-4444
client_secret = ~A-client-SECRET-1234
The problem occurs when I have gone through the basic configuration and (because I'm running on a remote terminal) I need to run the rclone authorise "one drive" "--some cryptext--"
on my local machine. That works correctly, but then when I get the token back I copy everything between Paste the following into your remote machine --->
and <---End paste
back over to the server and I get an error that says:
Couldn't decode response - try again (make sure you are using a matching version of rclone on both sides: invalid character 'e' looking for beginning of value
Error: failed to configure OneDrive: empty token found - please run "rclone config reconnect Office365-OneDrive:"
A log from the command with the -vv
flag
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config in: state="*oauth-authorize,choose_type,,", result="ey123--long-cryptext-token-copied-from-local-system--"
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config out: out=&{State:*oauth-authorize,choose_type,, Option:<nil> OAuth:<nil> Error:Couldn't decode response - try again (make sure you are using a matching version of rclone on both sides: invalid character 'e' looking for beginning of value
Result:}, err=<nil>
Couldn't decode response - try again (make sure you are using a matching version of rclone on both sides: invalid character 'e' looking for beginning of value
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config in: state="*oauth-authorize,choose_type,,", result=""
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config out: out=&{State:*oauth-done,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config in: state="*oauth-done,choose_type,,", result=""
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config in: state="choose_type", result=""
2021/11/01 15:02:27 DEBUG : Office365-OneDrive: config out: out=<nil>, err=failed to configure OneDrive: empty token found - please run "rclone config reconnect Office365-OneDrive:"
Error: failed to configure OneDrive: empty token found - please run "rclone config reconnect Office365-OneDrive:"
The only thing I notice here (and this could be an artefact of logging) in the config in
line the token it logs is shorter than the token that I pasted in. The original token is approximately 7400 characters long.
The version on both my server (Debian 10) and my local machine (MacOS Darwin 11.6 on ARM) are 1.56.2, downloaded and installed just now.