-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Websocket error: SSL not available #1107
Comments
EDIT: I cannot get this example to run successfully in wss:// (secure) mode.
|
To repro this problem, run the example here, and change the ws:// to wss:// to request secure mode. CC @debauchery1st - are you able to get SSL working with your websocket example? |
Ok, a little bit more. digging into the _ssl_compact.py in websocket-clinet, it looks like my python is being built without backports.ssl_match_hostname: Getting this exception when it's trying to import backports: No module named backports.ssl_match_hostname |
I think I figured it out. Two things needed:
What's the next step? should py4a at least automatically include backports.ssl-match-hostname if SSL is included? |
I'm not sure. I use ws4py and openssl module via requests. None of this is necessary. But thanks for the analysis |
Thanks @tito - I guess improving docs is the best solution, hopefully it's discoverable for the next person that runs across it |
Resolves kivy#1107
Getting this error when attempting to open a secure websocket ('wss://') using websocket-client.
09-02 09:12:04.037 10328 10719 I python : [ERROR ] [MyApp] Websocket error: SSL not available.
09-02 09:12:04.037 10328 10719 I python : [INFO ] [MyApp] Websocket closed
Still happens after trying:
buildozer android update
andbuildozer android clean
and updatebuildozer requirements:
requirements = kivy==1.10.0, sqlite3, openssl, pyopenssl, pygments, websocket-client
Other notes:
To get websocket-client to load I had to copy websocket-client source locally into my project as recommended here: https://github.com/kivy/python-for-android/blob/master/pythonforandroid/recipes/websocket-client/__init__.py#L3
I disabled the SSL check on websocket-client and found a lower level exception:
09-02 10:00:43.215 13478 13511 I python : [ERROR ] [MyApp] Websocket error: _ssl.c:331: No root certificates specified for verification of other-side certificates.
The text was updated successfully, but these errors were encountered: