Hello,
I'm on a CentOS 7 machine. I'm writing a script to upload some backup files on Google Drive.
I was able to upload them properly with an test account, going through the auth flow and paste the verification code.
Now I changed the gmail account on the same machine, created an API with this account, and updated the clientKey and the clientSecret but the gdrive do not print the url to authorize the app. If I try to run the command ./gdrive-master/gdrive-master list:
Failed to list files: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=nextPageToken%2Cfiles%28id%2Cname%2Cmd5Checksum%2CmimeType%2Csize%2CcreatedTime%2Cparents%29&orderBy=&pageSize=30&q=trashed+%3D+false+and+%27me%27+in+owners: oauth2: cannot fetch token: 401 Unauthorized
Response: {
"error": "invalid_client",
"error_description": "Unauthorized"
}
I even tried to re-clone the repo from github into another folder but print the same error.
Hello, I'm on a CentOS 7 machine. I'm writing a script to upload some backup files on Google Drive. I was able to upload them properly with an test account, going through the auth flow and paste the verification code. Now I changed the gmail account on the same machine, created an API with this account, and updated the clientKey and the clientSecret but the gdrive do not print the url to authorize the app. If I try to run the command ./gdrive-master/gdrive-master list:
I even tried to re-clone the repo from github into another folder but print the same error.
Thank you