Skip to content
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

Requests fails with SSL error python 3.6 #61

Closed
FredHappyface opened this issue Jan 18, 2020 · 6 comments
Closed

Requests fails with SSL error python 3.6 #61

FredHappyface opened this issue Jan 18, 2020 · 6 comments

Comments

@FredHappyface
Copy link

@FredHappyface FredHappyface commented Jan 18, 2020

The python requests library installs without a problem however when connecting to api.github.com fails with SSL error no ciphers available. Running the same application in pydroid 3 or with python 3.8 on Debian does not result in this error

@riverfor

This comment has been minimized.

Copy link
Member

@riverfor riverfor commented Jan 19, 2020

Thanks for the feedback, it is indeed a bug, I will fix it as soon.

@riverfor

This comment has been minimized.

Copy link
Member

@riverfor riverfor commented Jan 21, 2020

Hello,
Can you use the below as a temporary solution, I will fix it in next update.

import requests
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = "TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-256-GCM-SHA384:ECDHE:!COMPLEMENTOFDEFAULT"

More detail: https://www.openssl.org/blog/blog/2017/05/04/tlsv1.3/

@FredHappyface

This comment has been minimized.

Copy link
Author

@FredHappyface FredHappyface commented Jan 22, 2020

Thanks very much for that. Yeah can certainly do :)

@riverfor

This comment has been minimized.

Copy link
Member

@riverfor riverfor commented Jan 23, 2020

If it doesn't work please reopen this issue.

@riverfor

This comment has been minimized.

Copy link
Member

@riverfor riverfor commented Feb 1, 2020

It is fixed in QPython 3L (v3.0.0) which will be released in these two days.

@phedoff

This comment has been minimized.

Copy link

@phedoff phedoff commented Feb 18, 2020

Hi, I tried the latest build (playstore), am still getting the ["no ciphers available" (_ssl.c:841)] error (workaround from comment #3 works).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.