@datitisev - I am getting this error with Gdrive.
-> failed to write to remote file: {
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadata": {
"service": "drive.googleapis.com",
"method": "google.apps.drive.v3.DriveFiles.Create"
}
}
]
}
}
I followed all steps for the setup, but I already use Oauth with google and used the same credentials. Should I have set up a separate app?
Edit:
I did need to create a separate app, just for this.
Note: It took a while for me to also figure out that only the File ID needs to be included. Could this be made a bit clearer, or am I just slower than most.
Edit 2:
It appears that the issue is still persisting today. I think there is a problem with the credentials staying in place and refreshing. Has anyone else experienced this?
-> failed to write to remote file: {
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadata": {
"method": "google.apps.drive.v3.DriveFiles.Create",
"service": "drive.googleapis.com"
}
}
]
}
}
Edit 3:
Just reset everything and it worked (temporarily). I followed instructions on the on the Auth playground, but it seems like the auto-refresh is not working and the access token is actually expiring. I've tested it several times and it works until the refresh. Maybe I am missing something.