svenmeier / coxswain

Your rowing servant
http://play.google.com/store/apps/details?id=svenmeier.coxswain
Apache License 2.0
80 stars 21 forks source link

Export to Google Fit fails #131

Closed arjunluthra closed 3 years ago

arjunluthra commented 3 years ago

I have my workouts set to auto export but I didn't see one after my workout today, when I try to manually do it, it shows saying exporting then says export failed.

Happy to get logs but not sure how to.

svenmeier commented 3 years ago

So it stopped working from one day to the other? You can choose "Export application log" in the Coxswain settings. Send me the resulting file, should be "/coxswain/app.log" or similar.

arjunluthra commented 3 years ago

Sure thing, emailed. I see this, not sure how it happened or how to reauth:

05-24 22:27:32.242 17947 17947 E coxswain: googlefit failed 05-24 22:27:32.242 17947 17947 E coxswain: com.google.android.gms.common.api.ApiException: 5000: Application needs OAuth consent from the user

It's been a few weeks since I've done a session, and it worked last time (5/1), I don't recall doing anything to remove access.

whosnick commented 3 years ago

I have the same problem. Export worked three days ago:

05-25 10:37:40.936 32650 32650 E coxswain: googlefit failed 05-25 10:37:40.936 32650 32650 E coxswain: com.google.android.gms.common.api.ApiException: 5000: Application needs OAuth consent from the user 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(com.google.android.gms:play-services-base@@17.1.0:4) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.common.internal.zai.zaf(com.google.android.gms:play-services-base@@17.1.0:2) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.common.internal.zak.onComplete(com.google.android.gms:play-services-base@@17.1.0:6) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.common.api.internal.BasePendingResult.zaa(com.google.android.gms:play-services-base@@17.1.0:176) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.common.api.internal.BasePendingResult.setResult(com.google.android.gms:play-services-base@@17.1.0:135) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.internal.fitness.zzaw.setResult(com.google.android.gms:play-services-fitness@@19.0.0:3) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.internal.fitness.zzei.onResult(com.google.android.gms:play-services-fitness@@19.0.0:4) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.internal.fitness.zzcm.zza(com.google.android.gms:play-services-fitness@@19.0.0:11) 05-25 10:37:40.936 32650 32650 E coxswain: at com.google.android.gms.internal.fitness.zza.onTransact(com.google.android.gms:play-services-fitness@@19.0.0:13) 05-25 10:37:40.936 32650 32650 E coxswain: at android.os.Binder.execTransact(Binder.java:726) 05-25 10:37:40.959 32650 32650 I Toast : Show toast from OpPackageName:svenmeier.coxswain, PackageName:svenmeier.coxswain 05-25 10:37:42.364 32650 32673 D OpenGLRenderer: endAllActiveAnimators on 0x72a7f31f00 (MenuPopupWindow$MenuDropDownListView) with handle 0x72a8298720 05-25 10:37:44.940 32650 32673 D OpenGLRenderer: endAllActiveAnimators on 0x72a7f5b600 (AlertController$RecycleListView) with handle 0x72a8220860 05-25 10:37:44.976 32650 32650 I Toast : Show toast from OpPackageName:svenmeier.coxswain, PackageName:svenmeier.coxswain 05-25 10:37:45.171 32650 32650 E coxswain: googlefit failed

Aldebaran911 commented 3 years ago

Hallo, ich habe heute ebenfalls das gleiche Problem. Bis vor ein par Tagen funktionierte es problemlos. Was ist das für ein Mist, meine Kommentare werden falsch wiedergegeben.

paria81 commented 3 years ago

Hallo, ich habe ebenfalls das Problem das der Export zu Google Fit Scheiter. Letzter erfolgreicher export war am 17. 05.

Ich habe versucht coxswain in Google fit rauszuschmeißen und neu zu verknüpfen, leider ohne Erfolg.

Auszug aus dem Log: 05-24 23:22:17.893 16398 16398 E coxswain: com.google.android.gms.common.api.ApiException: 5000: Application needs OAuth consent from the user 05-24 23:22:17.893 16398 16398 E coxswain: at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(com.google.android.gms:play-services-base@@17.1.0:4)

svenmeier commented 3 years ago

Google has restricted access to fit data. I probably missed the announcement or I didn't bother why they make it harder once again to use their services :(.

I will check what has to be changed.

dr-loz commented 3 years ago

Thx Seven, Great app! Also worked for me Monday, since then kaput.

svenmeier commented 3 years ago

Strange, exporting to Google Fit works fine for me.

Could you try removing access for Coxswain here https://myaccount.google.com/permissions and then start another export in the App?

Aldebaran911 commented 3 years ago

Hallo, das Entfernen der Zugriffsrechte und erneuter Export bringt bei mir nichts.

Sven Meier @.***> schrieb am Mi., 26. Mai 2021, 18:13:

Strange, exporting to Google Fit works fine for me.

Could you try removing access for Coxswain here https://myaccount.google.com/permissions and then start another export in the App?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/svenmeier/coxswain/issues/131#issuecomment-848906760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPEKIOP6JXIHT3VIVAS6N3TPUMYZANCNFSM45OQ5X2Q .

svenmeier commented 3 years ago

Which Android version?

whosnick commented 3 years ago

I removed the connection via the Google link you provided and then tried another export. It showed failed to export again but then I got the pop-up to rebind the app to my Google account. I did that but the export still fails. I am on Android 9.

dr-loz commented 3 years ago

Hey android 10. I removed account access in Google. Then tried export... failed ( didn't ask me to link account). I deleted coxswain cache and data.. restarted.. this time export promoted account link.. export still failed.

paria81 commented 3 years ago

Same Here, unlink the coxswain App (done this Yesterday more then once) and Tried to Export again. PopUp -> select Google Account -> export stil fail.

Android 10 MIUI 12

But First time i saw the following Message

dr-loz @.***> schrieb am Mi., 26. Mai 2021, 19:22:

Hey android 10. I removed account access in Google. Then tried export... failed ( didn't ask me to link account). I deleted coxswain cache and data.. restarted.. this time export promoted account link.. export still failed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/svenmeier/coxswain/issues/131#issuecomment-848964489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHRL27RGSPPL3MR5IYF7DLTPUU6DANCNFSM45OQ5X2Q .

arjunluthra commented 3 years ago

Same issue after disconnecting. Android 11.

Do you need a new log file?

svenmeier commented 3 years ago

No, I was able to reproduce the problem on my wife's phone.

whosnick commented 3 years ago

I can confirm it works again with app version 8.5. Thanks for your effort, Sven!

svenmeier commented 3 years ago

Thanks for reporting back.

arjunluthra commented 3 years ago

Confirmed also, thank you very much!