googlesamples / google-services

A collection of quickstart samples demonstrating the Google APIs for Android and iOS
https://developers.google.com
Apache License 2.0
3.05k stars 2.53k forks source link

[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION #253

Open mtrakal opened 8 years ago

mtrakal commented 8 years ago

Step 1: Are you in the right place?

NO, I'm not, but it's really hard to contact google for bug reports which are not related to http://b.android.com/ ... :/

https://gist.github.com/mtrakal/6445a6ec5f6e98ea3bd1c1600862f7fa

Steps to reproduce:

  1. Do nothing, just put your phone on desk
  2. Open logcat to track app and select No filters in AS
  3. See a lot of stuf from Google play services....

    Observed Results:

A lot of time does not work sync, Hangouts never show notifications and a lot of next ****...

Expected Results:

No errors! And working authentication!

Relevant Code:

It's obfuscated, no idea...

http://stackoverflow.com/questions/35967017/gettoken-failed-status-bad-authentication-error-found-in-android-studio

IgorB10 commented 7 years ago

+1

samtstern commented 7 years ago

@mtrakal what sort of problems is this causing for you? Or are you just concerned about excess logging.

mtrakal commented 7 years ago

Hi @samtstern,

it was not possible to login over https://developers.google.com/identity/sign-in/android/start

callback was never returned, or something like that. It's 4 month ago... I really don't remeber it :(.

Sync was not working (google apps, Keep, Hangout, Email...)

samtstern commented 7 years ago

It's been a really long time since this thread was updated so I am going to close it. If you'd like to keep discussing just comment and I will re-open it. I hope your issue has been resolved since then but if not we can definitely keep working on it!

softwaredementor commented 7 years ago

I am facing similar issue. No idea what triggered it.

03-12 00:49:06.153 3675-3966/? W/Auth: [GoogleAuthUtil] GoogleAuthUtil 03-12 00:49:06.153 3675-3966/? W/GLSActivity: dcn: BadAuthentication at dby.a(:com.google.android.gms:1518) at dbx.a(:com.google.android.gms:914) at dbx.e(:com.google.android.gms:526) at dbw.a(:com.google.android.gms:37) at ddj.getAuthToken(:com.google.android.gms:181) at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:214) at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113) at android.os.Binder.execTransact(Binder.java:453) 03-12 00:49:06.157 18474-18519/? W/PlayCommon: [4657] com.google.android.play.a.g.a(1018): Deferring log upload because couldn't retrieve auth token 03-12 00:49:06.353 18474-18522/? I/PlayCommon: [4660] com.google.android.play.a.g.e(932): Preparing logs for uploading 03-12 00:49:06.404 3675-7947/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.android.vending, Service: androidmarket dgn: Long live credential not available. at dgo.a(:com.google.android.gms:3101)

gingsero commented 7 years ago

Hi, I'm searching that issue. I inform you how I can resolve this error.

Check login identification in android device.(I have three ids) Remove an identification which is unsynchronized.

That's it... This error was disappeared. I hope you resolve.

samtstern commented 7 years ago

@joonhocho what sort of problems does this cause for you?

joonhocho commented 7 years ago

@samtstern Currently I haven't tested throughly how this error really affects my app, but this error comes on my Android logging monitor every 15 seconds or so. FYI, my app uses Google Sign In to make some API calls.

francescovigot commented 7 years ago

i use my phone as emulator ,when it was android 6 it didnt have any problem once i upgraded my android to 7 this message appears on logcat

amit-bst commented 6 years ago

I am still having this issue to a lot of my users with android nougat.

visw227 commented 6 years ago

I'm still having this error React-native android trying to sync entries to calendar

NitzDKoder commented 6 years ago

09-06 19:44:07.135 E/Auth ( 3088): [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.google.android.gm, Service: oauth2:https://mail.google.com/ https://www.googleapis.com/auth/gmail.ads https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/taskassist.readonly https://www.googleapis.com/auth/plus.contactphotos https://www.googleapis.com/auth/reminders https://www.googleapis.com/auth/gmail.full_access 09-06 19:44:07.135 E/Auth ( 3088): fzk: Long live credential not available.

Client side Getting same error. Sender-ID

2018-09-05 12:52:04.289 pid:29578 worker:2 error: Push Notification error : "SENDER_ID_MISMATCH"

App Server Side getting SENDER_ID_MISMATCH.

Maybe i need to enable something at console as senderID was genarated long back i.e Creation date Aug 31, 2017, 5:10:20 PM

SogoGolf commented 5 years ago

I'm seeing this in error logs too (native Android app) and it bothers me. What on earth is causing it ?

NitzDKoder commented 5 years ago

In my case there was actual mismatch.. server was picking wrong data.. now its sorted..

ten-skv commented 5 years ago

I'm also facing same issue. +1

VergilUa commented 5 years ago

I'm getting same issue as described above, resulting in a complete auth soft-lock.

04-16 17:14:43.452: E/Auth(2920): [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/games 04-16 17:14:43.452: E/Auth(2920): qmw: Long live credential not available. 04-16 17:14:43.452: E/Auth(2920): at gyz.c(:com.google.android.gms@16089039@16.0.89 (100408-239467275):18) 04-16 17:14:43.452: E/Auth(2920): at gyz.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):12) 04-16 17:14:43.452: E/Auth(2920): at gyz.b(Unknown Source:0) 04-16 17:14:43.452: E/Auth(2920): at gxk.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):22) 04-16 17:14:43.452: E/Auth(2920): at isb.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):7) 04-16 17:14:43.452: E/Auth(2920): at isb.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):161) 04-16 17:14:43.452: E/Auth(2920): at irb.a(Unknown Source:2) 04-16 17:14:43.452: E/Auth(2920): at iqz.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):17) 04-16 17:14:43.452: E/Auth(2920): at iqz.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):7) 04-16 17:14:43.452: E/Auth(2920): at gtw.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):33) 04-16 17:14:43.452: E/Auth(2920): at gtw.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):81) 04-16 17:14:43.452: E/Auth(2920): at guf.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):3) 04-16 17:14:43.452: E/Auth(2920): at gue.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):2) 04-16 17:14:43.452: E/Auth(2920): at gue.c(:com.google.android.gms@16089039@16.0.89 (100408-239467275):6) 04-16 17:14:43.452: E/Auth(2920): at gud.a(:com.google.android.gms@16089039@16.0.89 (100408-239467275):1) 04-16 17:14:43.452: E/Auth(2920): at gwb.getAuthToken(:com.google.android.gms@16089039@16.0.89 (100408-239467275):9) 04-16 17:14:43.452: E/Auth(2920): at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:246) 04-16 17:14:43.452: E/Auth(2920): at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:114) 04-16 17:14:43.452: E/Auth(2920): at android.os.Binder.transact(Binder.java:667) 04-16 17:14:43.452: E/Auth(2920): at duz.onTransact(:com.google.android.gms@16089039@16.0.89 (100408-239467275):3) 04-16 17:14:43.452: E/Auth(2920): at android.os.Binder.execTransact(Binder.java:731)

This happens when user has signed out via PlayGamesPlatform.Instance.SignOut(), then restarts the game and tries to authenticate again.

Also, this doesn't happen on all devices, but when it happens - it happens each time. Android 6 / 8 / 9 are seems to be affected. Not tested on other devices though. Plugin version 0.9.61

Erraoudy commented 4 years ago

+1

yangga commented 4 years ago

+1

RogerioDoCarmo commented 4 years ago

+1

thiagoicarros commented 4 years ago

Same issue here

spun-Chris commented 4 years ago

+1

jafar-jabr commented 4 years ago

+1

keyserjaya commented 3 years ago

Same Issue here

Merlinkoss commented 3 years ago

Same issue

andrescollarino commented 3 years ago

+1

superdiazzz commented 2 years ago

Hi, I'm searching that issue. I inform you how I can resolve this error.

Check login identification in android device.(I have three ids) Remove an identification which is unsynchronized.

That's it... This error was disappeared. I hope you resolve.

How to check login indentification in device?

superdiazzz commented 2 years ago

any new solution for this case?

campagna91 commented 2 years ago

+1 - the problem persists

Device: google pixel 5@android 12 cordova 10.0.0 - cordova-android: 10.1.1

Has someone solved ?

FrSenpai commented 2 years ago

+1

manjunath-teachmint commented 2 years ago

+1

Sienna94 commented 2 years ago

+1

fahad-programmer commented 1 year ago

Same issue app crashes on startup

Sigurd922 commented 10 months ago

Same issue app crashes on startup.

Environment Device: Samsung Note 9, SC_01L OS version: Android 8.1.0 SDK version: 33 [Android] Google Play Services version: 38.0.34-21[0][PR] 574417783

Crash Logs The attachment is crash logs of our app. SC-01L_crash_on_startup.zip