{"record":{"id":"c55ee32525cfca93","repo":"sqlmapproject/sqlmap","slug":"unable-to-retrieve-page-content","errorCode":null,"errorMessage":"unable to retrieve page content","messagePattern":"unable to retrieve page content","errorType":"exception","errorClass":"SqlmapConnectionException","httpStatus":null,"severity":"error","filePath":"lib/controller/checks.py","lineNumber":1810,"sourceCode":"            infoMsg += \"the target URL page content\"\n            logger.info(infoMsg)\n\n            if not re.search(conf.regexp, rawResponse, re.I | re.M):\n                warnMsg = \"you provided '%s' as the regular expression \" % conf.regexp\n                warnMsg += \"which does not have any match within the target URL raw response. sqlmap \"\n                warnMsg += \"will carry on anyway\"\n                logger.warning(warnMsg)\n\n        kb.errorIsNone = False\n\n        if any(_ in (kb.serverHeader or \"\") for _ in PRECONNECT_INCOMPATIBLE_SERVERS):\n            singleTimeWarnMessage(\"turning off pre-connect mechanism because of incompatible server ('%s')\" % kb.serverHeader)\n            conf.disablePrecon = True\n\n        if not kb.originalPage and wasLastResponseHTTPError():\n            if getLastRequestHTTPError() not in (conf.ignoreCode or []):\n                errMsg = \"unable to retrieve page content\"\n                raise SqlmapConnectionException(errMsg)\n        elif wasLastResponseDBMSError():\n            warnMsg = \"there is a DBMS error found in the HTTP response body \"\n            warnMsg += \"which could interfere with the results of the tests\"\n            logger.warning(warnMsg)\n        elif wasLastResponseHTTPError():\n            if getLastRequestHTTPError() not in (conf.ignoreCode or []):\n                warnMsg = \"the web server responded with an HTTP error code (%d) \" % getLastRequestHTTPError()\n                warnMsg += \"which could interfere with the results of the tests\"\n                logger.warning(warnMsg)\n        else:\n            kb.errorIsNone = True\n\n        if kb.choices.redirect == REDIRECTION.YES and threadData.lastRedirectURL and threadData.lastRedirectURL[0] == threadData.lastRequestUID:\n            if (threadData.lastRedirectURL[1] or \"\").startswith(\"https://\") and conf.hostname in getUnicode(threadData.lastRedirectURL[1]):\n                conf.url = re.sub(r\"https?://\", \"https://\", conf.url)\n                match = re.search(r\":(\\d+)\", threadData.lastRedirectURL[1])\n                port = match.group(1) if match else 443\n                conf.url = re.sub(r\":\\d+(/|\\Z)\", r\":%s\\g<1>\" % port, conf.url)","sourceCodeStart":1792,"sourceCodeEnd":1828,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/controller/checks.py#L1792-L1828","documentation":"Error \"unable to retrieve page content\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/controller/checks.py:1810 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"}