-
Notifications
You must be signed in to change notification settings - Fork 32
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
Cannot process emited events while being hosting as Flask/FastAPI app #95
Comments
See this example: https://github.com/ValvePython/steam/tree/master/recipes/2.SimpleWebAPI I would also make sure the credentials for login are always used as remember password tends to disconnect once in a while. Monkey patching is recommended (you have to do that yourself, see https://steam.readthedocs.io/en/latest/api/steam.monkey.html#steam.monkey.patch_minimal). I would also recommend using https://www.gevent.org/api/gevent.pywsgi.html#gevent.pywsgi.WSGIServer to run the flask app. Can't comment on fastapi as I haven't tried it. |
@rossengeorgiev thanks for the answer. It was really helpful. |
I have an issue with creating a small web application whuch will wait for request with profile id and return it's profile card, but it seems like jobs and events are not working when hosting it as Flask or FastAPI apps. For me it seems like a bug but I'm not sure.
Do you have ideas?
The text was updated successfully, but these errors were encountered: