{"id":"05dc1acea9c2e012","repo":"pypa/pip","slug":"ssl-missing","errorCode":"ssl-missing","errorMessage":"Failed to establish a secure connection for {url}","messagePattern":"Failed to establish a secure connection for (.+?)","errorType":"exception","errorClass":"SSLMissingError","httpStatus":null,"severity":"error","filePath":"src/pip/_internal/network/session.py","lineNumber":531,"sourceCode":"\n    def request(self, method: str, url: str, *args: Any, **kwargs: Any) -> Response:  # type: ignore[override]\n        # Allow setting a default timeout on a session\n        kwargs.setdefault(\"timeout\", self.timeout)\n        # Allow setting a default proxies on a session\n        kwargs.setdefault(\"proxies\", self.proxies)\n\n        # Dispatch the actual request\n        try:\n            return super().request(method, url, *args, **kwargs)\n        except (requests.ConnectionError, requests.Timeout) as e:\n            request = getattr(e, \"request\", None)\n            failed_url = getattr(request, \"url\", None) or url\n            raise_connection_error(e, url=failed_url, timeout=kwargs[\"timeout\"])\n        except ImportError as e:\n            if \"ssl\" in str(e).lower():\n                # Unfortunately, if this TLS error was the result of a redirect from\n                # a HTTP to a HTTPS url, we don't know what the final url was.\n                raise SSLMissingError(redact_auth_from_url(url))\n            raise\n","sourceCodeStart":513,"sourceCodeEnd":533,"githubUrl":"https://github.com/pypa/pip/blob/d7d0d0a39494e28ec1c407bd0680e4a4d1067791/src/pip/_internal/network/session.py#L513-L533","documentation":"Error \"Failed to establish a secure connection for {url}\" thrown in pypa/pip.","triggerScenarios":"Thrown at src/pip/_internal/network/session.py:531 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"d7d0d0a39494e28ec1c407bd0680e4a4d1067791","analyzedAt":"2026-08-04T20:55:04.259Z","schemaVersion":2}