08-15-2024 02:41
08-15-2024 02:41
I have a GitHub Actions workflow which runs every 4 hours.
There's an issue with the refresh/access token. When I tried to manually update, I used this URL:
(I've removed the client ID etc).
Now I see this error:
The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: unauthorized_client - Invalid client_id
The Client ID is correct. status.fitbit.com now says "UPDATE2: We are expanding the maintenance window to end on August 14th."
Could this be related? I have no idea what's wrong. It's worked fine for years!
08-15-2024 02:45
08-15-2024 02:45
I stripped the "'s from the URL, now I get this:
Failed to authenticate. Response from Fitbit API:
{'errors': [{'errorType': 'invalid_client', 'message': 'Invalid authorization header. Client id invalid. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.'}], 'success': False}
The client ID is is correct. That's one of the most static things of Oauth!
08-21-2024 10:52 - edited 08-21-2024 10:53
08-21-2024 10:52 - edited 08-21-2024 10:53
Hi @o6uoq
Thank you for your patience. I'm not sure the maintenance being performed would cause this problem. You said when you try to manually update the access and refresh tokens you are getting the error. The endpoint you said you called to update the tokens is the authorization URL. While you can use the authorization endpoint to obtain updated access and refresh tokens, it is not the best approach.
Instead, try using the refresh token endpoint. It will perform fewer verification checks than the authorization URL in order to refresh tokens.
Let me know how this works for you.
08-21-2024 13:33
08-21-2024 13:33
I had to manually go through the Oauth flow and I was able to recreate tokens and now it's working. How do I close this post?
08-28-2024 17:35
08-28-2024 17:35
I'll take care of closing the post. Thanks for the update.