/socket.io/?EIO=3&transport=polling error
Closed this issue · 3 comments
i have deployed two applications including this rchat app on Google cloud platform that always have this error and messages cant be sent or received. I am using App engine flex environment, all the codes listed here have been deployed, i can create and account and sign in but cant send or receive messages.
i am new to programming so i dont know what to do, i have done several things i saw on stack overflow and on google but no way
Please help
Just built this app locally and discovered that the application.py needs this:
if __name__ == "__main__": app.run(debug=True)
Replaced with this:
if __name__ == "__main__": socketio.run(app, debug=True)
To fix the error.
I had some similar issue due to compatibility issues between flask-socketio and the client socketio version and solved by checking version of both that are used.
https://flask-socketio.readthedocs.io/en/latest/#version-compatibility
I hope it helped
Thank you it worked.