I have same problem. I get same error when I do in linux
$ ./rclone ls pcloud:/
2020/10/11 17:24:13 ERROR : : error listing: couldn't list files: pcloud error: Invalid 'access_token' provided. (2094)
2020/10/11 17:24:13 Failed to ls with 2 errors: last error was: couldn't list files: pcloud error: Invalid 'access_token' provided. (2094)
But when I use Windows machine where I created the token, it works - I can list files in pcloud. The token is exactly same in both machines, Windows works and linux not.
Btw, I did not do this part in installation because I don't have root access:
I have no issues on a Linux machine as I just tested:
felix@gemini:~$ rclone ls PC:
22250443 Getting started with pCloud.pdf
6319438 My Videos/pCloud.mp4
1442376 My Music/Demo Audio 2.mp3
6698872 My Music/GotJoy.mp3
28096964 My Music/Lovely Day.wav
11252576 My Music/Momentum.mp3
666846 My Pictures/friends.jpg
189628 My Pictures/happy-family.jpg
32905 My Pictures/in-the-sky.jpg
500130 My Pictures/lovers.jpg
238222 My Pictures/romance.jpg
162388 My Pictures/sweet.jpg
felix@gemini:~$ rclone version
rclone v1.53.1
- os/arch: linux/amd64
- go version: go1.15
Update: It started to work now. I had to choose advanced config in rclone config and then choose 2 / EU region. All other settings default, except token of course.
Now my ~/.config/rclone/rclone.conf looks like this:
[pcloud]
type = pcloud
token = {"access_token":"xxx","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
hostname = eapi.pcloud.com