Box OAuth 2.0getting Error "401 Unauthorized" (401)

What is the problem you are having with rclone?

Hello, Getting 401 un authorized error when trying to use rclone w/ Box. Setup is simple, I have put in my client id, secret, and dev token but still getting error.

What is your rclone version (output from rclone version)

1.53.3

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

macOS 10.15.7

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

Box

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

rclone -vvv ls box:

The rclone config contents with secrets removed.

[box]
type = box
client_id = XXXXXX
client_secret = XXXXXX
access_token = XXXXXX
box_sub_type = enterprise

A log from the command with the -vv flag

error:
2021/01/14 12:37:09 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "-vvv" "ls" "box:"]
2021/01/14 12:37:09 DEBUG : Using config file from "/Users/render/.config/rclone/rclone.conf"
2021/01/14 12:37:09 DEBUG : Creating backend with remote "box:"
2021/01/14 12:37:09 DEBUG : Couldn't decode error response: EOF
2021/01/14 12:37:09 ERROR : : error listing: couldn't list files: Error "401 Unauthorized" (401)
2021/01/14 12:37:09 DEBUG : 6 go routines active
2021/01/14 12:37:09 Failed to ls with 2 errors: last error was: couldn't list files: Error "401 Unauthorized" (401)

hello and welcome to the forum,

have you done this?

Ah yeh that could very well be it. I don't have access to the admin console but just tried submitting the app for authorization. However I assumed it would work under the dev mode before linking to the real account first.

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