{"record":{"id":"e78867bdfd15088a","repo":"sqlmapproject/sqlmap","slug":"unable-to-connect-to-the-target-url","errorCode":null,"errorMessage":"unable to connect to the target URL","messagePattern":"unable to connect to the target URL","errorType":"exception","errorClass":"SqlmapConnectionException","httpStatus":null,"severity":"error","filePath":"lib/request/connect.py","lineNumber":168,"sourceCode":"from lib.utils.sqllint import checkSanity\nfrom thirdparty import six\nfrom collections import OrderedDict\nfrom thirdparty.six import unichr as _unichr\nfrom thirdparty.six.moves import http_client as _http_client\nfrom thirdparty.six.moves import urllib as _urllib\nfrom thirdparty.socks.socks import ProxyError\n\nclass Connect(object):\n    \"\"\"\n    This class defines methods used to perform HTTP requests\n    \"\"\"\n\n    @staticmethod\n    def _getPageProxy(**kwargs):\n        try:\n            if (len(inspect.stack()) > sys.getrecursionlimit() // 2):   # Note: https://github.com/sqlmapproject/sqlmap/issues/4525\n                warnMsg = \"unable to connect to the target URL\"\n                raise SqlmapConnectionException(warnMsg)\n        except (TypeError, UnicodeError):\n            pass\n\n        try:\n            return Connect.getPage(**kwargs)\n        except RuntimeError:\n            return None, None, None\n\n    @staticmethod\n    def _retryProxy(**kwargs):\n        threadData = getCurrentThreadData()\n        threadData.retriesCount += 1\n\n        if conf.proxyList and threadData.retriesCount >= conf.retries and not kb.locks.handlers.locked():\n            warnMsg = \"changing proxy\"\n            logger.warning(warnMsg)\n\n            conf.proxy = None","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/connect.py#L150-L186","documentation":"Error \"unable to connect to the target URL\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/connect.py:168 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}