Article directory
How to solveRcloneThe API of self-built Microsoft OneDrive appears "Error: failed to configure OneDrive: empty token found" error?
To configure the self-built API of Microsoft Onedrive in Rclone, you need to configure config_token ▼
Option config_token. For this to work, you will need rclone available on a machine that has a web browser available. For more help and alternate methods see: https://rclone.org/remote_setup/ Execute the following on the machine with the web browser (same rclone version recommended): rclone authorize "onedrive" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Then paste the result. Enter a value. config_token>
After the Rclone of the local computer obtains the token, and then returns to SSH to enter the token, the following error appears ▼
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 22:”
Usage:
rclone config [flags] rclone config [command]Available Commands:
create Create a new remote with name, type and options.
delete Delete an existing remote.
disconnect Disconnects user from remote
dump Dump the config file as JSON.
file Show path of configuration file in use.
password Update password in an existing remote.
paths Show paths used for configuration, cache, temp etc.
providers List in JSON format all the providers and options.
reconnect Re-authenticates user with remote.
show Print (decrypted) config file, or the config for a single remote.
touch Ensure configuration file exists.
update Update options in an existing remote.
userinfo Prints info about logged in user of remote.flags:
-h, --help help for configAdditional help topics:
rclone config edit Enter an interactive configuration session.Use “rclone [command] –help” for more information about a command.
Use “rclone help flags” for to see the global flags.
Use “rclone help backends” for a list of supported services.2022/05/02 23:50:56 Fatal error: failed to configure OneDrive: empty token found – please run “rclone config reconnect 22:”
Why does Rclone have "Couldn't decode response - try again" error?
This is because all Rclone versions do not accept tokens larger than 4096.
The problem is that the Rclone that generates the token used to be non-encoded and was always less than 4096.
After Rclone version 1.56, the authorization code starts to be encoded, so the returned encoded token exceeds 4096 characters, so it cannot be pasted into the full token field in SSH.
However, the tokens currently obtained in Rclone are as long as4022characters, the problem occurs.
How to solve Rclone display "Couldn't decode response - try again" error?
After the local computer is configured, the local computer'srclone.conf
The contents of the configuration file are copied toLinuxon the serverrclone.conf
configuration file.
On the local computer and the server, enter the following commands toView Rclone configuration file location command▼
rclone config file
Query the Rclone configuration file, and the obtained results are as follows▼
rclone config file Configuration file is stored at: /root/.config/rclone/rclone.conf
- Just put the local computer's configuration file
rclone.conf
copy the contents to the Linux serverrclone.conf
The configuration file can solve the problem that "Error: failed to configure OneDrive: empty token found" is displayed when Rclone configures Onedrive.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Resolving Rclone Error: failed to configure OneDrive: empty token found", which is helpful to you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-27743.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!