Closed mm360x closed 2 years ago
i had the same issue with python3.6, running pyfcm on python3.5 doesn't have this issue.
In python3.6 and eventlet > 0.17.4, this issue will happen. https://github.com/eventlet/eventlet/issues/371
Use eventlet.monkey_patch as early as possible in the code fixed the issue.
Using the eventlet wrapper for SSL protocols and upgrading to version 0.26 worked for me for all libraries
0
I am using Python 3.8.3 My program is a chat application using python-socketio with a redis queue using eventlet server in a docker container and load balanced with nginx The program works fine on my local computer But when I try to run in an an AWS EC2 linux instance, the pyfcm library when trying to send a Push Notification does not work and I get an ssl error. I am using eventlet.monkeypatch(socket=True) at the start of the program
This is the error
My Program, I have tried monkeypatching() before any other imports but then my websocket connections do not work as well as my databse connection times out. I have also tried the pyfcm import before and after the monkeypatch but nothing seems to work
Any solutions will be greatly appreciated! Thank you