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

yes

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

onedrive

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 --->
eyJ0b2tlbiI6IntcImFjY2Vzc190b2tlblwiOlwiZXlKMGVYQWlPaUpLVjFRaUxDSnViMjVqWlNJNklrWXdiRmhrTjBadlMzUkNTMGt6YXpGS1MxOHhjbTlCVG1KTWNYQllPV2haWTNSc1pXTjZiMU00YjJjaUxDSmhiR2NpT2lKU1V6STFOaUlzSW5nMWRDSTZJaTFMU1ROUk9XNU9VamRpVW05bWVHMWxXbTlZY1dKSVdrZGxkeUlzSW10cFpDSTZJaTFMU1ROUk9XNU9VamRpVW05bWVHMWxXbTlZY1dKSVdrZGxkeUo5LmV5SmhkV1FpT2lJd01EQXdNREF3TXkwd01EQXdMVEF3TURBdFl6QXdNQzB3TURBd01EQXdNREF3TURBaUxDSnBjM01pT2lKb2RIUndjem92TDNOMGN5NTNhVzVrYjNkekxtNWxkQzgwWmpGbE1EVm1OaTAxT1RRNExUUTFOMkl0T1dRMFlTMDNOVEF3TUdZMU5XVmlabVV2SWl3aWFXRjBJam94TmpjNE5ETTRORFkw...............

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 code.it 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.