PythonPusherClient
PythonPusherClient copied to clipboard
Error: cafile, capath and cadata cannot be all omitted
Hi,
When trying to run pythonpucherclinet
I always get the error saying: cafile, capath and cadata cannot be all omitted
I got into same problem, and was able to resolve it by modifying on connection.py lines 108 and 199 from: self.socket.run_forever() to: self.socket.run_forever(sslopt={'cert_reqs': 0}). It is too bad that the pusherclient does not allow you to get to this interface and load the websocket with sslopt option. Although, I admit that I might be missing something here, so if anyone see how to add sslopt to websocket without changing source code, please let me know.
@689137 So what you are doing is the same as the pull request above. ssl.CERT_NONE
translates to 0. It looks like the CI test of the pull request fail because the tests itself are invalid, since it's trying to use a dependency which does not work on python 2.6. Also there is probably no need to still support python 2.6...
If you do not want to do these changes yourself you can use my fork of the library, but do not expect any support or further changes. On the other hand I do not think PythonPusherClient is still alive either ... so it might be probably the best to find an alternative.