Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

raise HTTPForbidden(response)

File "/usr/local/lib/python3.10/site-packages/fitbit/exceptions.py", line 84, in detect_and_raise_error

    raise HTTPForbidden(response)

fitbit.exceptions.HTTPForbidden: Invalid authentication token. The PROFILE (READ) scope is required. Visit dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.


I can't find this in the documentation, everything works for one of my applications, but for another there is this error, what could be the problem? this behavior is not described in the documentation

Best Answer
4 REPLIES 4

Hi @stanhjr,

Welcome to the forums!

I'm not familiar with this error either, but it sounds like you're not asking for the profile scope in your authorization url. Are you attempting to pull data that requires the profile scope? Can you tell me which endpoint you're calling?

Best Answer

Hi 🙂 fot example , I call the user_profile_get method (

url = "{0}/{1}/user/{2}/profile.json".format(*self._get_common_args(user_id))




Best Answer

@stanhjr 

 
Could you please provide more details regarding the case?
Best Answer
0 Votes

We have two applications, in one of them everything works wonderfully, we created another application, and I get a 403 status that is not in the documentation, perhaps we configured the new application incorrectly?

if you need to go into even more detail, I’ll be happy to do it, I just don’t really understand what exactly needs to be provided

thank you for your interest

Best Answer
0 Votes