I created service account for my account [email protected](Google apps) and my application works fine. Then I created service account for my personal account [email protected], use this new credentials for my application and now when I try to insert files I get error 500 with next text:
HttpError 500 when requesting https://www.googleapis.com/upload/drive/v2/files?quotaUser=30&uploadType=resumable&convert=true&ocr=false&alt=json returned "Internal Error"
The only thing that changes is credentials SERVICE_ACCOUNT_EMAIL and SERVICE_ACCOUNT_PKCS12_FILE_PATH. I have tried to create another service account for [email protected] but it doesn't help, so bacically my app only works with first service account. Language is python.