02-28-2019 02:07
02-28-2019 02:07
Hi,
I'm getting this error in after login to my web application today.
Developer information: invalid_request - Invalid redirect_uri parameter value
It was working well for past weeks, but today I'm getting this error.
Could someone help on this issue?
02-28-2019 08:40
02-28-2019 08:40
After registering my app, tried opening this link https://www.fitbit.com/oauth2/authorize
Thrown error:
The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: invalid_request - Missing response_type parameter value
Can some please suggest to me how to handle this error?
03-05-2019 09:46
03-05-2019 09:46
Would you please provide the complete /oauth/authorize URL you're trying to execute?
03-06-2019 13:46
03-06-2019 13:46
03-06-2019 16:58
03-06-2019 16:58
Hi @Handsonlab
I'm not seeing the original error you reported. But some things I do notice are
3. The error message looks like it's coming from the OAuth2 library.
Check out this forum post. I believe your error is similar to what this user was getting. A solution is provided at the bottom
https://community.fitbit.com/t5/Web-API-Development/Invalid-Client-Error/m-p/3290401
03-07-2019 07:45 - edited 03-07-2019 07:46
03-07-2019 07:45 - edited 03-07-2019 07:46
Thanks @Gordon-C, It did work if i run on command line and it is not working with Jupyternotebook.
python gather_keys_oauth2.py <client-id> <secret_id>
I Initialized all the client_id and secret_id in "gather_keys_oauth2.py" init function. Even though it is not functioning from jupyter notebook.
Anyway, thanks at least it is working in one way. If you know the reason why? please let me know
03-11-2019 11:10
03-11-2019 11:10
Hi Handsonlab,
If you're using the oracsgit python library, verify you're using the following versions of the libraries
`requests-oauthlib == 1.1.0` and `oauthlib == 2.1.0`
These versions resolved the "Invalid Client Error". I'm assuming there is a bug in the newer version that needs to be fixed by the owner of the OAuth library.
03-11-2019 11:15 - edited 03-11-2019 11:16
03-11-2019 11:15 - edited 03-11-2019 11:16
It is working, I have a doubt how can I get a continuous sleep value using python.
03-12-2019 14:51
03-12-2019 14:51
Would you describe what you mean by "continuous sleep value"?
03-12-2019 14:58
03-12-2019 14:58
03-12-2019 16:03
03-12-2019 16:03
The Web APIs don't returns sleep stages every second. The sleep data is returned with only 30 or 60-second granularity.
https://dev.fitbit.com/build/reference/web-api/sleep/#get-sleep-logs
03-14-2019 09:14
03-14-2019 09:14
my requesting url:
URL: https://api.fitbit.com/1.2/user/-/sleep.json?date=2019-3-8&startTime=02:32&duration=720000
-----------
Traceback (most recent call last):
File "gather_keys_oauth2.py", line 87, in <module>
sleep_data = server.fitbit.get_sleep_granularity(datetime.datetime(2019, 3, 8, 0, 0))
File "Z:\python-fitbit-master\fitbit\api.py", line 811, in get_sleep_granularity
return self.make_request(url)
File "Z:\python-fitbit-master\fitbit\api.py", line 255, in make_request
response = self.client.make_request(*args, **kwargs)
File "Z:\python-fitbit-master\fitbit\api.py", line 99, in make_request
exceptions.detect_and_raise_error(response)
File "Z:\python-fitbit-master\fitbit\exceptions.py", line 86, in detect_and_raise_error
raise HTTPNotFound(response)
fitbit.exceptions.HTTPNotFound: The API you are requesting could not be found.
Can some please reply why this API does not exist?
03-15-2019 09:18
03-15-2019 09:18
Hi @Handsonlab
I cannot reproduce an error using the same syntax. Would you please private message me your client ID, the user ID and roughly the time the API call was made?
Thanks!
Gordon
03-15-2019 09:24
03-15-2019 09:24
Actually, I did find one scenario where I could reproduce the error message. This API call supports the HTTP Verb POST only. If I change the Verb to GET, I receive the error "The API you are requesting could not be found."
Before sending me the information I requested in the previous post, please verify the Verb you're using.
Here's the link to the documentation on that endpoint: https://dev.fitbit.com/build/reference/web-api/sleep/#log-sleep.