-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refresh_cb returning Error code 401 #61
Comments
It seems like the credentials are saving correctly, but when I pass them to the WithingsApi() I get this: I am a little confused because the common.py shows token_expiry as int python_withings_api/withings_api/common.py Line 585 in 7ac2327
Could you please let me know what I am doing wrong here? Save the tokens to db table:
Query the db table and create the Credentials() object
Pass the Credentials() object to WithingsAPI to test if tokens are working
|
Alright think I'm pretty close... Got it working now by using Credentials2 instead of Credentials... Only last issue now is that it doesn't seem like the refresh_cb is working if I go into my db and manually update the 'expires_in' to 10... Thanks again in advance
|
Put some more time into this... Updated my functions to use pickle as per the integration test example:
The above all works when I do the initial connection via the authorize_url, and continues to work until the the token expires... When the refresh_db tries to run though, I keep getting Error code 401 @vangorra please help! |
@vangorra wanted to check in once more to see if you could please help out here. Thanks in advance... |
I have essentially the same issue as ethanopp. The .credentials file is not being created and it is failing in the token generation also with the following screen. This site can’t be reached184.187.79.5 took too long to respond. Checking the connection The app authentication (step 1) works where it asks the user to press the authorize app button. It fails in the second step with the error shown above. I tried the same invocation with localhost:5000 as my uri and it fails with the same error message. Please help. I am running scripts/integration_test.py with mode=None |
Code has been working now for over a year, stopped working all of the sudden...wondering if something has changed
Code is pretty straightforward, user clicks 'Allow', I parse query params for the code and then pass to the .get_credentials() function.
The code is being parsed correctly so it seems something with the function is off...
Here is the error I'm getting
Also, when trying to
print(creds)
I getinvalid syntax (<unknown>, line 1)
The text was updated successfully, but these errors were encountered: