03-11-2016
14:10
- last edited on
03-15-2016
12:15
by
AndrewFitbit
03-11-2016
14:10
- last edited on
03-15-2016
12:15
by
AndrewFitbit
HI ,
Please help on this...
Hi ,
Getting access token , but when try to access the profile data ...it is throwing
03-12 01:04:48.690: E/JSONStr(14476): {"error":"invalid_grant","error_description":"authentication failure"}n
03-12 01:04:47.425: E/JSONStr(14476): {"access_token":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTc3MDg3NDksInNjb3BlcyI6IndociIsInN1YiI6IjNRQk1IQiIsImF1ZCI6IjIyOVczViIsImlzcyI6IkZpdGJpdCIsInR5cCI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTQ1NzcwNTE0OX0.ZsrOE7N5B32yXEpsquQ6uML0QE1-L79Ro3TNyB47x1c","expires_in":3600,"refresh_token":"0a9afc3ac9e203e1a951dbc1758b837fd19bc25ac45578043698074fd949f1a1","scope":"heartrate","token_type":"Bearer","user_id":"3QBMHB"}n
03-12 01:04:47.960: D/dalvikvm(14476): GC_FOR_ALLOC freed 1738K, 30% free 6756K/9584K, paused 23ms, total 23ms
03-12 01:04:48.690: E/JSONStr(14476): {"error":"invalid_grant","error_description":"authentication failure"}n
03-12 01:04:48.695: D/Token Access(14476): eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTc3MDg3NDksInNjb3BlcyI6IndociIsInN1YiI6IjNRQk1IQiIsImF1ZCI6IjIyOVczViIsImlzcyI6IkZpdGJpdCIsInR5cCI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTQ1NzcwNTE0OX0.ZsrOE7N5B32yXEpsquQ6uML0QE1-L79Ro3TNyB47x1c
03-12 01:04:48.695: D/Expire(14476): 3600
03-12 01:04:48.695: D/Refresh(14476): 0a9afc3ac9e203e1a951dbc1758b837fd19bc25ac45578043698074fd949f1a1
03-12 01:04:49.670: D/AndroidRuntime(14476): Shutting down VM
Moderator edit: title for clarity
03-16-2016 23:46
03-16-2016 23:46
These logs are not useful to debugging your application. The best way for us to help you is by examining the full HTTP request and response. You can use Runscope Traffic Inspector to do this. Be sure to obfuscate your client secret and refresh tokens when posting publicly.
These logs seem to suggest that your app obtained an access token via the Authorization Code Grant Flow, but then your app tried to do another authorization code request.