{"record":{"id":"d8edfd8df812c91c","repo":"sqlmapproject/sqlmap","slug":"host-s-does-not-exist","errorCode":null,"errorMessage":"host '%s' does not exist","messagePattern":"host '(.+?)' does not exist","errorType":"exception","errorClass":"SqlmapConnectionException","httpStatus":null,"severity":"error","filePath":"lib/controller/checks.py","lineNumber":1759,"sourceCode":"        finally:\n            kb.pageCompress = popValue()\n            kb.nullConnection = False if kb.nullConnection is None else kb.nullConnection\n            hashDBWrite(HASHDB_KEYS.CHECK_NULL_CONNECTION_RESULT, kb.nullConnection, True)\n\n    return kb.nullConnection in getPublicTypeMembers(NULLCONNECTION, True)\n\ndef checkConnection(suppressOutput=False):\n    threadData = getCurrentThreadData()\n\n    if not re.search(r\"\\A\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\Z\", conf.hostname):\n        if not any((conf.proxy, conf.tor, conf.dummy, conf.offline)):\n            try:\n                debugMsg = \"resolving hostname '%s'\" % conf.hostname\n                logger.debug(debugMsg)\n                socket.getaddrinfo(conf.hostname, None)\n            except socket.gaierror:\n                errMsg = \"host '%s' does not exist\" % conf.hostname\n                raise SqlmapConnectionException(errMsg)\n            except socket.error as ex:\n                errMsg = \"problem occurred while \"\n                errMsg += \"resolving a host name '%s' ('%s')\" % (conf.hostname, getSafeExString(ex))\n                raise SqlmapConnectionException(errMsg)\n            except UnicodeError as ex:\n                errMsg = \"problem occurred while \"\n                errMsg += \"handling a host name '%s' ('%s')\" % (conf.hostname, getSafeExString(ex))\n                raise SqlmapDataException(errMsg)\n\n    if not suppressOutput and not conf.dummy and not conf.offline:\n        infoMsg = \"testing connection to the target URL\"\n        logger.info(infoMsg)\n\n    try:\n        kb.originalPageTime = time.time()\n        page, headers, _ = Request.queryPage(content=True, noteResponseTime=False)\n\n        rawResponse = \"%s%s\" % (listToStrValue(headers.headers if headers else \"\"), page)","sourceCodeStart":1741,"sourceCodeEnd":1777,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/controller/checks.py#L1741-L1777","documentation":"Error \"host '%s' does not exist\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/controller/checks.py:1759 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"}