You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have dozens of students in Data 8 who have experienced
ERROR | auth.py:102 | {'error': 'invalid_grant'}
when trying to log into okpy from a Jupyter notebook (_ = ok.auth(inline=True)). I can't track down any commonality into what is causing this. The workaround/hack we have been using is to add force=True, but that is not ideal because then it requires them to reauthenticate every time. Also it seems like a kludge to paper over an issue, and it would be nice to understand what is causing this problem and fix it.
How would I go about debugging / troubleshooting this?
The text was updated successfully, but these errors were encountered:
It might be that the reauthentication process does not take into consideration Jupyter notebooks, since that error is what you get when your token has expired on the CLI client.
try:
access_token = refresh_local_token(server)
except OAuthException as e:
# Account for Invalid Grant Error During make_token_post
if not silent:
raise e
return notebook_authenticate(cmd_args, force=True, silent=False)
is what might not be working. Check to see if it's even reaching this point?
We have dozens of students in Data 8 who have experienced
ERROR | auth.py:102 | {'error': 'invalid_grant'}
when trying to log into okpy from a Jupyter notebook (
_ = ok.auth(inline=True)
). I can't track down any commonality into what is causing this. The workaround/hack we have been using is to addforce=True
, but that is not ideal because then it requires them to reauthenticate every time. Also it seems like a kludge to paper over an issue, and it would be nice to understand what is causing this problem and fix it.How would I go about debugging / troubleshooting this?
The text was updated successfully, but these errors were encountered: