Google Drive Error 400 "Invalid Value" when reading directory

What is the problem you are having with rclone?

I started getting Input/Output error when trying to interact with the drive.

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

rclone v1.62.2 (but started with 1.59.x)

  • os/version: amazon 2 (64 bit)
  • os/kernel: 4.14.309-231.529.amzn2.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: none

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

Google Drive

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

ls /drive

The rclone config contents with secrets removed.

type = drive
client_id = <removed>
client_secret = <removed>
scope = drive.readonly
token = {"access_token":"<removed>","token_type":"Bearer","refresh_token":"<removed>","expiry":"2023-03-25T03:44:50.128569905Z"}
team_drive = <removed>
root_folder_id = appDataFolder

A log from the command with the -vv flag

[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ rclone mount drive: /drive --allow-non-empty -vv
2023/03/25 02:44:12 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "mount" "drive:" "/drive" "--allow-non-empty" "-vv"]
2023/03/25 02:44:12 DEBUG : Creating backend with remote "drive:"
2023/03/25 02:44:12 DEBUG : Using config file from "/home/ec2-user/.config/rclone/rclone.conf"
2023/03/25 02:44:12 DEBUG : Google drive root '': Mounting on "/drive"
2023/03/25 02:44:12 DEBUG : : Root:
2023/03/25 02:44:12 DEBUG : : >Root: node=/, err=<nil>
2023/03/25 02:44:25 DEBUG : /: Attr:
2023/03/25 02:44:25 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/03/25 02:44:25 DEBUG : /: ReadDirAll:
2023/03/25 02:44:25 DEBUG : : Dir.ReadDirAll error: couldn't list directory: googleapi: Error 400: Invalid Value, invalid
2023/03/25 02:44:25 ERROR : IO error: couldn't list directory: googleapi: Error 400: Invalid Value, invalid

It was working fine a few days ago. The authorization workflow seems to work correctly.

Is that the actual value or did you mask something out?

Actual value, it was the default

Are you sure a team drive has an App Data location? I thought that was only for a regular user.

1 Like

I'm not sure of anything tbh.

But I ran the flow again and selected the team drive, and that cleared the root_folder_id field... and that did it!

Thanks, no idea how the state got messed up.

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