-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
Access token not refreshing #349
Comments
Adding log output from failed refresh |
Please add the logs (instead of attaching them) in a code block. |
Passing client fetch log: `schwab-api version 0.0.0a29 BEGIN REDACTED LOGS[debug.py:151:_enable_bug_report_logging] schwab-api version 0.0.0a29 Failing client fetch log: `schwab-api version 0.0.0a29 BEGIN REDACTED LOGS[debug.py:151:_enable_bug_report_logging] schwab-api version 0.0.0a29 |
Wait a second, this is the wrong repo... Can you re-enter your ticket on the new library? https://github.com/alexgolec/schwab-py/issues |
oh shoot, yes let me do that |
Description of Bug
I created my token with client_from_manual_flow, all my inputs are correct. It then only gives me a expires_in token of 1800 (30 min).
Then I use schwab.auth.client_from_token_file to create my client which is also suppose to refresh my token as well right? But my token still expires on the first set 30 min
My token file exists on the same level as the code I am using to grab quotes. Here is my code:
`from schwab.auth import client_from_manual_flow
api_key='',
app_secret='',
callback_url='https://127.0.0.1',
token_path='/mnt/c/Users/Brogan/Documents/tickerStats/schwab-py/token.json'
def getPrice(ticker):
getPrice('$SPX')`
Expected Behavior
I expect the access token to update to a new expire time.
Actual Behavior
Instead, the token still expires at my original set time from the manual token creation. I have to manually create the token every 30 min to access schwab
Error/Exception Log, If Applicable
log.txt
The text was updated successfully, but these errors were encountered: