05-31-2022 08:42
05-31-2022 08:42
Hi Fitbit Team,
I have 3 users in our app that on May 26th that began returning the error message upon automatic access token refresh - existing users that have been getting data / refreshing token for quite a while:
Response: {"errors":[{"errorType":"invalid_grant","message":"Refresh token invalid: aaec9662c22560981f59b82fda9f80fbe3230d23e2398a6f291c4e080cf6ff6f. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
Looking at our request log for prior refresh requests, it appears we had been requesting the refresh and saving the new token data properly. What would be the best way to troubleshoot if anything strange occurred with these users? (e.g. maybe they revoked access and we missed the subscription notification?)
Also, is there a way that I could request a valid token for the user manually and get them fixed up in our database?
We are using the regular authorization code grant flow.
Thanks, Jeff
Answered! Go to the Best Answer.
06-09-2022 06:54
06-09-2022 06:54
I have reached out to each of the people above, individually. You should have received an email from me/Fitbit developer support team. If you do not see the email, please check your spam inbox.
To clarify, there are several reasons for the invalid refresh tokens. Based on the timing when some of these issues occurred, I'm assuming the problems are not related. We have suggestions in our Developer Guide and Troubleshooting Guide which explain the common causes and solutions to refresh token issues.
06-01-2022 09:49
06-01-2022 09:49
Let me know if I can PM some UserIds, last known tokens.
06-01-2022 23:33
06-01-2022 23:33
Hi Jeff,
I have also experienced a very similar issue. I had 2 users fail their access token refresh on the night of April 26th , receiving the same response error that you did. These 2 users had also been refreshing tokens for a while previously.
Currently our proposed solution is to prompt the user to reauthorise their Fitbit account, but ideally would be better if there was a way to manually refresh the token like you said.
Out of curiosity did your tokens fail at the exact same time or over a period on May 26th?
We had one token refresh fail at 15:36 on 26/04 and another at 02:09 on 27/04.
Thanks
Cleye
06-02-2022 05:40
06-02-2022 05:40
Hi Cleye, it was three various times throughout the date on May 26th, similar to your scenario.
06-06-2022 06:28
06-06-2022 06:28
Hi Team,
We had 80 more users that had this issue over the weekend, not sure if there was a server issue?
Is there any way I can get these users whole again without forcing them to reauthenticate with the application?
06-06-2022 09:10
06-06-2022 09:10
Hi @Jeff_New_Ocean and @cleye,
My apologies for the delay as we juggle holiday schedules within the support team. I will take a look at this problem today and report back soon.
Gordon
06-06-2022 13:16
06-06-2022 13:16
Hi @Gordon-C I PM'd you some examples.
06-08-2022 10:54
06-08-2022 10:54
Hi,
I am also having the same issue here. Is here any update on this? Is there an automatic way to get the tokens sync'd?
06-08-2022 11:54
06-08-2022 11:54
Thanks @Gordon-C. I will be out until Monday. Can you include fred.marinari@newoceanhealth.com on responses as well?
06-09-2022 06:19
06-09-2022 06:19
@Jeff_New_Ocean ... yes I'll reach out to you and Fred on this issue directly.
@skip.coon and @cleye ... I'll reach out to you directly using the email address in your profile to collect more information to debug. I don't want you to include in PII or sensitive data in the community forums while I investigate.
06-09-2022 06:54
06-09-2022 06:54
I have reached out to each of the people above, individually. You should have received an email from me/Fitbit developer support team. If you do not see the email, please check your spam inbox.
To clarify, there are several reasons for the invalid refresh tokens. Based on the timing when some of these issues occurred, I'm assuming the problems are not related. We have suggestions in our Developer Guide and Troubleshooting Guide which explain the common causes and solutions to refresh token issues.