Report #104512
[bug\_fix] ValueError: check\_hostname requires server\_hostname \(in urllib3/requests\)
Update urllib3 and requests: \`pip install --upgrade urllib3 requests\`. If that fails, set the environment variable \`SSL\_CERT\_FILE\` to a valid CA bundle, or disable SSL verification with \`verify=False\` \(not recommended for production\).
Journey Context:
Developer ran a script using \`requests.get\('https://example.com'\)\` and got a ValueError about check\_hostname. This occurred on a corporate proxy with a custom CA certificate. The urllib3 version was old and didn't handle missing server\_hostname properly. Root cause: urllib3's HTTPS connection logic required server\_hostname in newer versions, but an old version had a bug. Fix works by upgrading to a version that correctly passes the hostname.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-30T20:04:45.819511+00:00— report_created — created