rclone: `authorize` results may be too long for multiple platforms

What is the problem you are having with rclone?

pasting the JSON string from running:

rclone authorize "onedrive" 

doesn’t work on Mac (freezes after pasting part of the JSON string, not the complete string) but pasting the exact same JSON string works fine under Ubuntu

What is your rclone version (output from rclone version)

rclone v1.44
- os/arch: darwin/amd64
- go version: go1.11.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

macOS 10.13.6 (64)

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

OneDrive

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

rclone config

and then pasting the JSON output of running:

rclone authorize onedrive

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2018/11/09 23:32:56 DEBUG : rclone: Version "v1.44" starting with parameters ["rclone" "-vv" "config"]
2018/11/09 23:32:56 DEBUG : Using config file from "/Users/osama/.config/rclone/rclone.conf"
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> onedrive
...
Storage> 18
** See help for onedrive backend at: https://rclone.org/onedrive/ **

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> n
For this to work, you will need rclone available on a machine that has a web browser available.
Execute the following on your machine:
        rclone authorize "onedrive"
Then paste the result below:
result> {"access_token":"eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFBQUFDNXVuYTBFVUZnVElGOEVsYXh0V2pUSjZPbFBESno0Rkg0VmJsRUZWNjZHTkh6Ym9GUnphVmF6dU5wMnJyeGVmVVc1bzJXOXJaM0N1bkg3a09Zb1RCckFoSFM3cGhOTW96UDEyeVF0NTV6U2lBQSIsImFsZyI6IlJTMjU2IiwieDV0Ijoid1VMbVlmc3FkUXVXdFZfLWh4VnRESkpaTTRRIiwia2lkIjoid1VMbVlmc3FkUXVXdFZfLWh4VnRESkpaTTRRIn0.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NzUzNzc3ZC05MzQwLTQwZTYtYTU5Mi0yZGU3Y2IyNjkyZDEvIiwiaWF0IjoxNTQxNzYyNzU0LCJuYmYiOjE1NDE3NjI3NTQsImV4cCI6MTU0MTc2NjY1NCwiYWNjdCI6MCwiYWNyIjoiMSIsImFpbyI6IjQyUmdZTmo1WjFmbllWUEY2TC9kbHo1YmRmbGtmRXE0SVdpYWVIOXAvWXhHUS9lc2FlWUEiLCJhbXIiOlsicHdkIl0sImFwcF9kaXNwbGF5bmFtZSI6InJjbG9uZSIsImFwcGlkIjoiYjE1NjY1ZDktZWRhNi00MDkyLTg1MzktMGVlYzM3NmFmZDU5IiwiYXBwaWRhY3IiOiIxIiwiZmFtaWx5X25hbWUiOiJFbG5hZ2dhciIsImdpdmVuX25hbWUiOiJPc2FtYSIsImlwYWRkciI6IjExOC4xMjcuMTA5LjIwIiwibmFtZSI6Ik9zYW1hIEVsbmFnZ2FyIiwib2lkIjoiOThjNTVmODMtZjA4ZS00OTJkLTg0MzgtOWNjYWZkNTdkYjAxIiwicGxhdGYiOiI1IiwicHVpZCI6IjEwMDMzRkZGOTlGMjM4RUUiLCJzY3A

It hangs and doesn’t paste in the entire JSON string. Running the exact same sequence on Ubuntu works without issue.

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

4K onedrive token? I think microsoft developers are crazy.