What error is no ciphers available? (Qpython)

Asked 2 years ago, Updated 2 years ago, 94 views

I am using the QPython3 Android app and I installed the requests module with pip.

import requests
req = requests.get("http://google.com")
print(req.text)

If you enter the code as shown above, it will run normally, but if you change http to https, the error below appears.

ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers availble (_ssl.c:841)

During handling of the above exception, another exception ocurred:

(omitted)

urlib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url / (Caused by SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),))

During handling of the above exception, another exception ocurred:

(omitted)

requests.exceptions.SSLError: HTTPSConnectionPool(host = 'www.google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),))

At first, I thought it was an https-related problem, but when I changed the address to Amazon, in the case of Amazon, the same error appears whether it is http or https.

I planned to crawl on Android, but even though it's the same code, it works well on PC and it doesn't work here

crawling python android

2022-09-22 15:19

1 Answers

What is the Python version? Also, what version of openssl is installed on Android?

These errors can be simple or complex.

Once you access google.com, you will be asked for tls 1.3.

New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 256 bit

Python uses openssl when using ssl. If an error occurs when accessing https, you must check the openssl version. Since the openssl library is usually distributed with Python, you can also find the openssl version by checking the Python version.

Please check Python 3.5.2 or higher and openssl 1.1.0 or higher.


2022-09-22 15:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.