Skip to content

Constant "Access token invalid" error.

Hi there,

When trying to launch run docker compose I get this in the last few lines of the log. I've checked the access token, re-created it and the application and I still get it each time. I have updated the docker-compose with my account variables (trying to run the docker compose dev returns an odd error 503) and I'm not sure where to look now.

  File "/api_poller.py", line 522, in <module>  
   run_api_poller()  
  File "/api_poller.py", line 413, in run_api_poller  
    user_profile = api_client.user_profile_get()  
  File "/usr/local/lib/python3.8/site-packages/fitbit/api.py", line 285, in user_profile_get  
    return self.make_request(url)  
  File "/usr/local/lib/python3.8/site-packages/fitbit/api.py", line 256, in make_request  
    response = self.client.make_request(*args, **kwargs)  
  File "/usr/local/lib/python3.8/site-packages/fitbit/api.py", line 99, in make_request  
    exceptions.detect_and_raise_error(response)  
  File "/usr/local/lib/python3.8/site-packages/fitbit/exceptions.py", line 82, in detect_and_raise_error  
    raise HTTPUnauthorized(response)  
fitbit.exceptions.HTTPUnauthorized: Access token invalid: <super_log_access_token>. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.```
Edited by Tom Bullock