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.
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.
Related
I am trying to connect to mysql using wampp and the following error is thrown how to solve this?
W/System.err: java.io.FileNotFoundException: http://192.168.2.198/login.php
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:250)
at com.example.mysqltest.BackgroundWorker.doInBackground(BackgroundWorker.java:46)
at com.example.mysqltest.BackgroundWorker.doInBackground(BackgroundWorker.java:19)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
There are following possibility to occur this issue
maybe your project or file location is not perfect
maybe because of the port number or IP not match time of calling
First, try to run this page in your mobile browser web browser and it will work in mobile browser then it will work in API definitely if not work then you need to change in your config
I am getting this error log when i started downloading something and moved on to next activity and then coming back to previous activity results in App Crash. I searched for this here as well but no solution is found. How this error occurs and What should I do to resolve this.
[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:1513926394>, App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/contextcontroller
dgn: Long live credential not available.
at dgo.a(:com.google.android.gms:3101)
at dfc.a(:com.google.android.gms:399)
at dfb.a(:com.google.android.gms:31371)
at dfb.a(:com.google.android.gms:313)
at egq.a(:com.google.android.gms:1201)
at ego.a(:com.google.android.gms:3554)
at ego.a(:com.google.android.gms:3196)
at dbp.a(:com.google.android.gms:349)
at dbp.a(:com.google.android.gms:213)
at dby.a(:com.google.android.gms:1501)
at dbx.a(:com.google.android.gms:914)
at dbx.e(:com.google.android.gms:526)
at dbx.d(:com.google.android.gms:445)
at dbv.b(:com.google.android.gms:562)
at jht.a(:com.google.android.gms:1080)
at jgj.a(:com.google.android.gms:53)
at bnz.a(:com.google.android.gms:5093)
at bjv.run(:com.google.android.gms:65)
at bjt.a(:com.google.android.gms:249)
at bjt.handleMessage(:com.google.android.gms:242)
at jly.run(:com.google.android.gms:139)
at jmg.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at jqr.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
ctxmgr: [BaseServerTask]Server task (WriteInterestRecordTask) got error response.
com.android.volley.VolleyError: Unable to obtain auth token - is the device online?
at bnz.a(:com.google.android.gms:5113)
at bjv.run(:com.google.android.gms:65)
at bjt.a(:com.google.android.gms:249)
at bjt.handleMessage(:com.google.android.gms:242)
at jly.run(:com.google.android.gms:139)
at jmg.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at jqr.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
10-05 13:43:15.101 3819-19797/? E/ctxmgr: [SyncServerInterestRecordsOperation]Failure response from WriteInterestRecord. StatusCode = -1
Need help, Thanks in advance !!
This issue has been observed and is reported on google samples github. No reported solution to this issue.
Can anybody help me with exception in my Android app. I use Google Analytics and have exception:
java.lang.OutOfMemoryError at com.google.android.d.d.g.a(SourceFile:51) at com.google.android.d.c.k.b(SourceFile:432) at com.google.android.d.c.c.a(SourceFile:241) at com.google.android.d.c.a.f.b(SourceFile:311) at com.google.android.d.c.a.f.a(SourceFile:108) at com.google.android.d.c.h.c(SourceFile:615) at com.google.android.d.d.s.run(SourceFile:242) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) 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:841)
I'm using google analytics and google interstitial and bottom banner ads version 8.1.0 in my android app.
Your application uses too much memory - that's the basic explanation. There can be many reasons for that, but in general all of them are just memory leaks or (more frequently) long living objects. Use memory analyzer in Android Studio to get more information about places where problem starts. you should also read this Google's article: http://developer.android.com/tools/debugging/debugging-memory.html
In my app I has already working GCM and I has enabled AppInvites in google console. In my project main module I added generated google-services.json and applied 'com.google.gms.google-services' plugin but still
when I trying to send the invites I get a following error:
AppInviteAgent﹕ Caller Package Name not found
android.content.pm.PackageManager$NameNotFoundException
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
at com.google.android.gms.common.util.e.b(SourceFile:823)
at com.google.android.gms.common.util.e.d(SourceFile:841)
at com.google.android.gms.appinvite.c.a.a(SourceFile:651)
at com.google.android.gms.appinvite.c.a.a(SourceFile:229)
at com.google.android.gms.appinvite.c.b.a(SourceFile:72)
at com.google.android.gms.appinvite.h.a(SourceFile:34)
at com.google.android.gms.common.service.g.run(SourceFile:178)
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)
What could cause this problem?
Im trying to execute the Android Identity Toolkit example from Google: https://github.com/googlesamples/identity-toolkit-android .
But, when I tried to execute the tutorial it gives me the next stack trace:
06-17 12:04:00.450 12306-12339/com.google.identitytoolkit.demo E/GoogleIdpClient﹕ Unrecoverable auth exception: Unknown
com.google.android.gms.auth.GoogleAuthException: Unknown
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:126)
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:841)
06-17 12:04:00.475 12306-12306/com.google.identitytoolkit.demo E/ViewRootImpl﹕ sendUserActionEvent() mView == null
I tried to find some iformation about that exception, but I cant find anything clear, or anything I can use as a solution.
I did all the steps which Google say to do: https://developers.google.com/identity/toolkit/android/quickstart but still not working, probally I did something wrong. Can you help me?
I think, a lot can trigger the exception with so much configuring going on. I got the same exception. For me, the issue is in the AndroidManifest(I got everything right in the developer console configuration).
My first mistake:
android:scheme is given "Client ID for Android" instead of "Client ID for web application"
My next mistake: (I think this one is really causing the unknown exception)
identitytoolkit.server_client_id is given "Key for web applications" instead of, again, "Client ID for web application"(this time without modifying reverse like above)