Problems with service account.

20 views
Skip to first unread message

Кирилл Николенко

unread,
Apr 10, 2013, 7:27:15 AM4/10/13
to google-api-p...@googlegroups.com
Hello. I have problem with different service accounts. I created service account to use it with drive api. And it's works fine. But then I created another service account for another account and now code stop working with new credentials. The only thin that changed in code is Email address and name of p12 file. I get error when I try to insert(Upload) file to drive
uploaded_file = drive.files().insert(body=body, media_body=media_body, convert=True, ocr=ocr).execute()
and text of error is <HttpError 500 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&convert=true&ocr=false&alt=json returned "Internal Error">

Joe Gregorio

unread,
Apr 12, 2013, 10:31:25 AM4/12/13
to google-api-p...@googlegroups.com
I've seen this sometimes on an account in a Google Apps domain where I
believe it's possible
to turn off API access, is that the difference between the two accounts?
> --
> You received this message because you are subscribed to the Google Groups
> "Google API Python Client" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-api-python-...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Кирилл Николенко

unread,
Apr 14, 2013, 3:36:49 AM4/14/13
to google-api-p...@googlegroups.com
I don't know. I have use simple accounts like na...@gmail.com for creating service accounts.

пятница, 12 апреля 2013 г., 17:31:25 UTC+3 пользователь jcgregorio написал:
Reply all
Reply to author
Forward
0 new messages