Comments (2)
I was able to reproduce all 35 Ubuntu 22.04 (OpenSSL 3.0) 3.13 errors locally.
The 35 original errors
============================================================================== short test summary info ===============================================================================
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=35741): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=35741): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=45701): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=45701): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=40907): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=40907): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=41275): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=41275): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_basic_proxy - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_http_proxy_to_http_target - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_https_proxy_to_http_target - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_http_and_https_kwarg_ca_cert_data_proxy - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_with_proxy_ssl_context - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_pyopenssl_not_supported - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_forwarding_for_https - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_nagle_proxy - AttributeError: 'NoneType' object has no attribute 'getsockopt'
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_oldapi - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_redirect - assert 500 == 303
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_host_redirect - Failed: DID NOT RAISE <class 'urllib3.exceptions.MaxRetryError'>
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_protocol_redirect - Failed: DID NOT RAISE <class 'urllib3.exceptions.MaxRetryError'>
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headers - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers_forwarding_for_https - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headerdict - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_scheme_host_case_insensitive - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestIPv6HTTPProxyManager::test_basic_ipv6_proxy - assert 500 == 200
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_fingerprint_md5 - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[localhost] - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[127.0.0.1] - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[::1] - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname_non_matching[::1] - assert "hostname \\'example.com\\' doesn\\'t match \\'0:0:0:0:0:0:0:1\\'" in '<ExceptionInfo MaxRetryError(\'HTTPSConnectionPool(host=\\\'localhost\\\', port=45835): Max retries...
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv4_san - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv6_san - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
FAILED test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san_hostname_checks_common_name - urllib3.exceptions.ProxySchemeUnsupported: TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext
======================================================= 35 failed, 1743 passed, 244 skipped, 54 warnings in 157.51s (0:02:37) ========================================================
27 of them appear to be caused by a new CPython bug tracked in python/cpython#116764. Applying a patch from python/cpython#116801 reduces the number of errors to 8. To silence the errors we can add temporary xfail
to the proxy tests when Python is 3.13.0a5.
The remaining failures of `test_client_intermediate` and `test_client_key_password`
============================================================================== short test summary info ===============================================================================
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=38853): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=38853): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=32965): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=32965): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=33931): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=33931): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=36791): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=36791): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ...
======================================================== 8 failed, 1770 passed, 244 skipped, 59 warnings in 133.11s (0:02:13) ========================================================
There is a new change related to certificates in 3.13.0a5 python/cpython#112389, unapplying it fixes the errors. In case of these 8 failures, it's likely that we need to adapt urllib3's tests to the striker SSL context flags.
from urllib3.
The remaining failures of
test_client_intermediate
andtest_client_key_password
============================================================================== short test summary info =============================================================================== FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=38853): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=38853): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=32965): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=32965): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=33931): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=33931): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_intermediate - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=36791): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... FAILED test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_key_password - urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=36791): Max retries exceeded with url: /certificate (Caused by ProtocolError('Connection aborted.', ... ======================================================== 8 failed, 1770 passed, 244 skipped, 59 warnings in 133.11s (0:02:13) ========================================================
There is a new change related to certificates in 3.13.0a5 python/cpython#112389, unapplying it fixes the errors. In case of these 8 failures, it's likely that we need to adapt urllib3's tests to the striker SSL context flags.
This is blocked by python-trio/trustme#642
from urllib3.
Related Issues (20)
- urllib3 2.2 explicitly casts all headers to HTTPHeaderDict HOT 4
- Streaming responses using urllib3 HOT 5
- verbose logging output
- Excess leading path separators causes ConnectionPool.urlopen to parse URL as host & port HOT 1
- ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) HOT 1
- SSL: UNEXPECTED_EOF_WHILE_READING HOT 7
- imprecise types on `urllib3.Retry.new` / `urllib3.Retry.increment` HOT 1
- "unable to get local issuer certificate", even though cURL works with the same website HOT 3
- Unclosed socket warning after HTTP 407 response from HTTP CONNECT proxy HOT 1
- All Retry backoff_factor to optionally start applying from first retry HOT 4
- Retry backoff_factor offset from second retry incorrectly computed HOT 2
- HTTPConnection.request chunked=False doesn't work properly HOT 8
- Need to exception for "SSLEOFError" on python 3.10, 3.11, 3.12 HOT 3
- After upgrading to 2.2.1: 'HTTPResponse' object has no attribute 'json' HOT 1
- Comment typo settimout settimeout HOT 1
- Dependency management issue HOT 2
- Fix test_redirecting_to_bad_url failure in Requests HOT 12
- NodeJS + pyodide support HOT 1
- Retry.respect_retry_after_header=False is not honored when retry is incremented HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urllib3.