I've been using rclone to upload files to a list of Google Drive accounts, which was working perfectly and then just stopped working throwing the following error:
ERROR : : error reading destination directory: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cm
d5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%27root%27+in+parents%29+and+%
28name%3D%27Test%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27: oauth2: cannot fetch token: 400 Bad Request
At C:\RClone\CSVCopy.ps1:11 char:1
I've tried re-creating the remote using the same service account file and also creating a new service account file, both of which haven't done the trick.
Any help would be much appreciated, rclone has been an invaluable tool recently!
A 400 bad request typically occurs when either there is something malformed in the syntax or something is "not within spec" so to speak - leading to a refusal. This should indicate a client-side problem in most cases.
It seems unlikely the syntax would be wrong given it has been working and Gdrive is popular and well-tested in rclone, and if google changed the interface we probably would have had more reports on it.
I would however check just to make certain if the problem occurs when using regular non-service accounts just to see if that's directly related. It's not impossible they put in a new restriction of some sort.
In any case I would highly recommend you make an error log using "--dump headers" so we can see the actual formatting of the request that fails. Given that this triggers the error it will no doubt be invaluable. I probably won't be able to interpret it well enough, but others here probably can.