Token is strange when onedrive setup

What is the problem you are having with rclone?

when i run "rclone config" to setup onedrive using my client_id and secret,http://localhost:53682/ return success! but the code is not token but a long strange strings.

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

rclone 1.61.1


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


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

Paste command here

The rclone config contents with secrets removed.

rclone authorize "onedrive" "eyJjbGllbnRfaWQiOiIzOTkwNDAyMi1jZjQzLTRhNDktOTI1NC01MGQ1ZmIxNzA2YmIiLCJjbGllbnRfc2VjcmV0IjoiNWN+OFF+MXU3M3llN3JkQ3dacHpYNjJuMHA1Qmt2Rl8wN1hxWGNKdiJ9"

A log from the command with the -vv flag

return success code below,but not the token

2023/03/10 08:59:10 NOTICE: Log in and authorize rclone for access
2023/03/10 08:59:10 NOTICE: Waiting for code...
2023/03/10 08:59:18 NOTICE: Got code
Paste the following into your remote machine --->

That is rclone's new way of dealing with the tokens - it encodes the token to make it easier to cut and paste. So all is working as it should be :slight_smile:

but when i paste the return failed . all the rclone are the same version(1.61.1).

return error below:
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 test:"

Just run it all on the same machine as the rclone.conf can just copied / pasted / migrated super easy. Remove the layer of complexity as something is not right between the versions.

thanks a lot! try "rclone config" on client pc is ok. so i can copy rclone.conf to headless server.

1 Like

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