Getting 403 Forbidden on Box

What is the problem you are having with rclone?

When trying to connect to Box account using rclone am getting the 403 Forbidden error.

Run the command 'rclone version' and share the full output of the command.

rclone v1.63.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.2.0-26-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • go/tags: none

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

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

rclone copy dropboxcrypt:test/ box-chunker:test/ --checkers 12 --tpslimit 64 --transfers 30 -vP

The rclone config contents with secrets removed.

type = box
box_sub_type = enterprise
token = {"access_token":"xxxx","token_type":"bearer","refresh_token":"xxx","expiry":"2023-08-14T08:59:04.623906251+02:00"}

A log from the command with the -vv flag

2023/08/13 17:38:55 Fatal error: failed to get token: oauth2: cannot fetch token: 403 Forbidden
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Forbidden</h1>
<h2>Your client does not have permission to get URL <code>/api/oauth2/token</code> from this server.</h2>

It is the same issue as:

Unfortunately no solution yet.

In other ticket interestingly the issue only occurs with specific host. And the same config works with other computers.

I start thinking that Box for unknown reason blocks some IP addresses.

You could try to connect from another IP address to validate it. Or maybe use VPN.

I would recommend to contact Box support - maybe they have some idea what is going on.

Thanks for getting back to me.

I will try to connect from a different IP and check.

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