Returns
Failed to list files: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=nextPageToken%2Cfiles%28id%2Cname%2C
md5Checksum%2CmimeType%2Csize%2CcreatedTime%2Cparents%29&orderBy=&pageSize=30&q=trashed+%3D+false+and+%27me%27+in+owners
: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error" : "invalid_grant"
}
gdrive*.exe list
Failed to list files: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=nextPageToken%2Cfiles%28id%2Cname%2C
md5Checksum%2CmimeType%2Csize%2CcreatedTime%2Cparents%29&orderBy=&pageSize=30&q=trashed+%3D+false+and+%27me%27+in+owners
: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error" : "invalid_grant"
}
I had the same issue. I worked around it by deleting the token file in the ~HOME\AppData\Roaming.gdrive directory before restarting the command.
Is it possible to use a token that does not expire?
I'm using it in multiple places, and I always have a problem when they expire!
I had the same issue. I worked around it by deleting the token file in the ~HOME\AppData\Roaming.gdrive directory before restarting the command.
Or rm -rf ~/.gdrive/token_*.json on Linux and relogin
Most helpful comment
I had the same issue. I worked around it by deleting the token file in the ~HOME\AppData\Roaming.gdrive directory before restarting the command.