flask example working with nginx and wsgi #198
Comments
Hi! I confirm. message_loop() with source queue not working with wsgi. |
Please confirm, are you guys using uWSGI? I don't have much experience with wsgi, uwsgi, or nginx. but a web search seems to link nginx with uwsgi (with a 'u' in front). That's why I want to confirm. Thanks. |
Same here, DelegatorBot doesn't seems to work. |
Hi @nickoala, I can confirm this problem for uWSGI. I tried this example, but the I'm using PythonAnywhere, which features a tutorial for telepot without PythonAnywhere uses uWSGI and nginx. The log-files for my webapp on PythonAnywhere start with these lines:
Do you think |
Update: In the log files I have just seen a line saying:
As |
Yes, I personally don't use PythonAnywhere, so can't suggest much here. Either get it to allow threads there, or use telepot's async version, which is based on asyncio (not threads). |
Thanks for the quick reply. Threads are available on PythonAnywhere to non-free accounts only, unfortunately. |
i try run flask example with wsgi and nginx
so i changed sys.args to manual set variable.
telegram never response ,
i see 200 in nginx response and when i open url in browser i see OK
i also add print line before
print(request.data)
update_queue.put(request.data) # pass update to bot
but i never get telegram response to user
b'{"update_id":651538238,\n"message":{"message_id":103,"from":{"id":259792113,"first_name":"ho","last_name":"ra","username":"rrm"},"chat":{"id":259792113,"first_name":"ho","last_name":"ra","username":"rrm","type":"private"},"date":1482353453,"text":"lj"}}'
The text was updated successfully, but these errors were encountered: