问题描述
我为我的帐户name@steelkiwi.com(Google应用程序)创建了服务帐户,我的应用程序正常工作。然后,我为我的个人帐户name@gmail.com创建了服务帐户,为我的应用程序使用此新凭据,现在,当我尝试插入文件时,出现错误500,并显示下一个文本:
I created service account for my account name@steelkiwi.com(Google apps) and my application works fine. Then I created service account for my personal account name@gmail.com, use this new credentials for my application and now when I try to insert files I get error 500 with next text:
唯一发生变化的是凭据SERVICE_ACCOUNT_EMAIL和SERVICE_ACCOUNT_PKCS12_FILE_PATH。我试图为name@steelkiwi.com创建另一个服务帐户,但它没有帮助,所以我的应用程序仅适用于第一个服务帐户。
语言是python。
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 name@steelkiwi.com but it doesn't help, so bacically my app only works with first service account.Language is python.
推荐答案
好吧,我不确定发生了什么事情, href =http://www.google.com/appsstatus#hl=zh-CN&v=issue&ts=1366405199000&iid=369723584758ad9cdfd010ac44c8272e =nofollow> http://www.google.com/appsstatus# hl = en& v = issue& ts = 1366405199000& iid = 369723584758ad9cdfd010ac44c8272e
但现在一切正常。起初,我使用服务帐户的示例创建了一个简单的小应用程序我已将这些凭证用于此应用程序,它的工作原理使我可以将此凭据添加到我的主代码中,并且它也可以工作。主要代码除凭证外没有任何更改。此外,我尝试了这个小应用程序的其他凭据,他们与它合作,并与主要代码工作。这很奇怪。
Ok, I'm not sure what happened maybe something was fixed after this accident http://www.google.com/appsstatus#hl=en&v=issue&ts=1366405199000&iid=369723584758ad9cdfd010ac44c8272ebut now all works fine. At first I created simple small app from examples that work with service accounts https://gist.github.com/mobedigg/5420958 I have used my credentials for this app and it's works so I put this credentials to my main code and it's worked too. Nothing was changed in main code except credentials. Also I tried other credentials on this small app and they are worked with it and worked with main code. It's very odd.
这篇关于Google驱动api和服务帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!