Auth error - No code returned by remote server

What is the problem you are having with rclone?

I'm trying to configure onedrive business an get an error.

What is your rclone version (output from rclone version)

rclone v1.51.0

  • os/arch: darwin/amd64
  • go version: go1.13.7
    => Seems up to date

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

MacOS Catalina (latest)

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

Onedrive business

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

rclone config

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

Output from the command line:
Waiting for code...
2020/04/03 11:55:44 DEBUG : Received GET request on auth server to "/"
2020/04/03 11:55:44 DEBUG : Closing auth server
2020/04/03 11:55:44 DEBUG : Closed auth server with error: accept tcp use of closed network connection
2020/04/03 11:55:44 Failed to configure token: Error: Auth Error
Code: ""
Description: No code returned by remote server

Output from the browser:
# Failure!
Error: Auth Error
Description: No code returned by remote server
No code returned by remote server

Thanks in advance :slight_smile:

I'd guess you have a local firewall which is preventing rclone using its webserver to receive the authorization on

That might be way off though!

Thanks @ncw for your quick reply :slight_smile:
I deactivate the firewall, but it should not be the solution yet...
The URL seems to say : "rclone is currently not supported for my organization "..." because it's in an unmanaged state. An administrator needs to claim ownership of the company by DNS validation of "..."
before the application rclone can be provisioned.

Do you know how to bypass that ?

You can follow the instructions to make your own client_id - that may help:

Otherwise you'll need to ask your admin to allow rclone I think.

Thanks again :slight_smile:
I've followed the doc, but need to contact the admin... :confused:


1 Like

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