尝试使用oauth2 / AccountManagerFuture对Google进行身份验证时出错

时间:2012-10-17 07:49:32

标签: android oauth-2.0 accountmanager

我正在开发的Android应用程序使用Google oauth对用户进行身份验证(通过AccountManager)。

直到昨天一直工作正常,现在每当应用尝试进行身份验证并获取google身份验证令牌时,我都会收到以下错误:

http://i.stack.imgur.com/0H8xT.png

Logcat显示以下内容(已删除电子邮件):

I/GLSUser ( 1478): GLS error: RATE_LIMIT_EXCEEDED xxx@yyy.com oauth2:https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
V/GoogleLoginService( 1478): Returning error intent with: ComponentInfo{com.google.android.gsf.login/com.google.android.gsf.login.LoginActivity}
I/ActivityManager(  456): START {flg=0x10000000 cmp=com.google.android.gsf.login/.LoginActivity (has extras) u=0} from pid 3967
I/ActivityManager(  456): START {cmp=com.google.android.gsf.login/.ShowErrorActivity (has extras) u=0} from pid 1478
I/qtaguid ( 1478): Tagging socket 52 with tag dc4e7700000000(14438007) for uid -1 failed errno=-13
I/NetworkManagementSocketTagger( 1478): tagSocketFd(52, 14438007, -1) failed with errno-13
W/GLSActivity( 1478): GAIA ERROR WITH NO RESOURCE STRING Unknown
I/ActivityManager(  456): Displayed com.google.android.gsf.login/.ShowErrorActivity: +69ms (total +92ms)

是否有人在此之前看到此RATE_LIMIT_EXCEEDED错误?

1 个答案:

答案 0 :(得分:0)

不,但也许您发送了太多请求?你有后台服务等吗?尝试使用其他帐户并考虑使用Google Play服务,它可能至少可以更好地处理这个问题。