Gdrive: oauth2: cannot fetch token: 400 Bad Request

Created on 15 Sep 2016  路  3Comments  路  Source: prasmussen/gdrive

  1. download gdrive x64 for windows (windows 7)
  2. command line gdrive*.exe list

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"
}

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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OleOldhoj picture OleOldhoj  路  6Comments

cod3r-dev picture cod3r-dev  路  7Comments

uzvermode picture uzvermode  路  3Comments

4getit picture 4getit  路  4Comments

nvsoares picture nvsoares  路  5Comments