Google Identity Toolkit Android demo, Getting Network error

走远了吗. 提交于 2019-12-11 10:49:12

问题


I have been trying to set up sample Android app of Google Identity Toolkit demo (gitkitdemo).

Have followed the instructions and successfully set up the sample. Login worked using my google accounts sometimes, but a lot of times mostly over mobile data(3G) I get following error:

https://www.googleapis.com/identitytoolkit/v3/relyingparty/createAuthUri?key=AIzaS3432QdokameMhwSzuQh_GTz423423U 07-26 14:14:13.300 5108-7306/pradeep.idtoolkit.demo E/GoogleIdpClient﹕ transient error encountered: NetworkError java.io.IOException: NetworkError at com.google.android.gms.auth.GoogleAuthUtil.zza(Unknown Source) at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source) at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source) at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source) at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:130) at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:120) at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:84) at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:71) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

My internet is working fine. Couldn't understand the reason for this. Is google identity toolkit production ready?

Please help if you have set this up before and can help me out. Thanks.


回答1:


did you properly configure your dev console set up and update the demo app settings? https://developers.google.com/identity/toolkit/android/quickstart Please provide more details on your error.



来源:https://stackoverflow.com/questions/31623798/google-identity-toolkit-android-demo-getting-network-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!