{"record":{"id":"eebdaf44bfff9979","repo":"sqlmapproject/sqlmap","slug":"problem-occurred-while-retrieving-original-page-co","errorCode":null,"errorMessage":"problem occurred while retrieving original page content which prevents sqlmap from continuation. Please rerun, and if the problem persists turn off any optimization switches","messagePattern":"problem occurred while retrieving original page content which prevents sqlmap from continuation\\. Please rerun, and if the problem persists turn off any optimization switches","errorType":"exception","errorClass":"SqlmapNoneDataException","httpStatus":null,"severity":"error","filePath":"lib/request/comparison.py","lineNumber":158,"sourceCode":"                threadData.lastPageTemplateCleaned = removeDynamicContent(kb.pageTemplate)\n                # Same template-identity memoization for the structure-aware projections (see below): the\n                # template is constant across an extraction, so it must not be re-parsed/re-tokenized on\n                # every inference request - only seq2 (from the live page) is recomputed per response\n                threadData.lastPageTemplateJsonMinimized = jsonMinimize(kb.pageTemplate)\n                threadData.lastPageTemplateStructural = \"\\n\".join(sorted(extractStructuralTokens(kb.pageTemplate)))\n                threadData.lastPageTemplate = kb.pageTemplate\n\n            seqMatcher.set_seq1(threadData.lastPageTemplateCleaned)\n\n        if not pageLength:\n            pageLength = len(page)\n\n    if kb.nullConnection and pageLength:\n        if not seqMatcher.a:\n            errMsg = \"problem occurred while retrieving original page content \"\n            errMsg += \"which prevents sqlmap from continuation. Please rerun, \"\n            errMsg += \"and if the problem persists turn off any optimization switches\"\n            raise SqlmapNoneDataException(errMsg)\n\n        ratio = 1. * pageLength / len(seqMatcher.a)\n\n        if ratio > 1.:\n            ratio = 1. / ratio\n    else:\n        # Preventing \"Unicode equal comparison failed to convert both arguments to Unicode\"\n        # (e.g. if one page is PDF and the other is HTML)\n        if isinstance(seqMatcher.a, six.binary_type) and isinstance(page, six.text_type):\n            page = getBytes(page, kb.pageEncoding or DEFAULT_PAGE_ENCODING, \"ignore\")\n        elif isinstance(seqMatcher.a, six.text_type) and isinstance(page, six.binary_type):\n            seqMatcher.set_seq1(getBytes(seqMatcher.a, kb.pageEncoding or DEFAULT_PAGE_ENCODING, \"ignore\"))\n\n        if any(_ is None for _ in (page, seqMatcher.a)):\n            return None\n        elif seqMatcher.a and page and seqMatcher.a == page:\n            ratio = 1.\n        elif kb.skipSeqMatcher or seqMatcher.a and page and any(len(_) > MAX_DIFFLIB_SEQUENCE_LENGTH for _ in (seqMatcher.a, page)):","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/comparison.py#L140-L176","documentation":"Error \"problem occurred while retrieving original page content which prevents sqlmap from continuation. Please rerun, and if the problem persists turn off any optimization switches\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/comparison.py:158 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"}