Failed to ls: couldn't list directory:

Trying to list files in Google drive. It has many many files - 2.4gb

issuing command rclone ls google: it lists files for quite a time and then stops with the message:

Failed to ls: couldn't list directory: json: cannot unmarshal string into Go struct field FileImageMediaMetadataLocation.altitude of type float64

Will it affect how it copies the files? Is it a problem with file? which one? how to find it?

Best to use the question template:

  • What version of rclone are you running?
  • Can you run the same command with -vv on it? You can also add --fast-list to speed it up

and share the output.

Thanks for fast reply
rclone v1.36
--fast-list parameter was not recognized

I get long list of files interrupted with
...
2020/04/03 16:04:52 DEBUG : Google drive root '': Reading "Google Photos/2012/01/"
1978458 20.Klientu Projekti/Inita Jansauska/InitasWorks Amazon DE v2.xlsx
2020/04/03 16:04:52 Failed to ls: couldn't list directory: json: cannot unmarshal string into Go struct field FileImageMediaMetadataLocation.altitude of type float64

hi,
rclone v1.36 is over two years old,
please update to v1.51.0 and test again.

Thanks a lot. This fixed it. And works much faster!

sure, glad help.

as Animosity022 wrote, next time you have a question, use the question template.

1 Like

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