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
{{ message }}
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
I used the Flask example in this repo, only editing the values CONSUMER_KEY and CONSUMER_SECRET on lines 14 and 15 of khan_api.py, respectively. I then run:
I tried troubleshooting it, and got the following three results:
[In] ka = KhanAcademySignIn()
[In] ka.get_callback_url()
.
.
.
RuntimeError: Attempted to generate a URL without the application context being pushed. This has to be executed when application context is available.
[In] ka.authorize()
.
.
.
RuntimeError: Attempted to generate a URL without the application context being pushed. This has to be executed when application context is available.
[In] ka.callback()
.
.
.
RuntimeError: Working outside of request context.
This typically means that you attempted to use functionality that needed
an active HTTP request. Consult the documentation on testing for
information about how to avoid this problem.
I read the docstring for KhanAcademySignIn and the comment block that follows it, but I don't understand it. Do I need to flesh out the example more, or is there some server-side issue going on?