06-06-2025 07:15
06-06-2025 07:15
(Ive seen a few entries related to this error but the fixes don't see to be working. )
In a nutshell- trying to use the refresh token to get the access token. Using
https://api.fitbit.com/oauth2/token
for the URL.
Hitting this error:
I tried the POST request using both json and text for the body. I've checked the values sent by POSTing to posttestserver.dev. Everything is there.
06-06-2025 10:10
06-06-2025 10:10
(for posterity)
Change the 'content-type' to 'application/x-www-form-urlencoded' and make sure the body params are a & delimited string.
Sending json doesn't work.