sqlmapproject/sqlmap · error · SqlmapNoneDataException

problem occurred while retrieving original page content whic

Error message

problem occurred while retrieving original page content which prevents sqlmap from continuation. Please rerun, and if the problem persists turn off any optimization switches

What it means

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.

Source

Thrown at lib/request/comparison.py:158

                threadData.lastPageTemplateCleaned = removeDynamicContent(kb.pageTemplate)
                # Same template-identity memoization for the structure-aware projections (see below): the
                # template is constant across an extraction, so it must not be re-parsed/re-tokenized on
                # every inference request - only seq2 (from the live page) is recomputed per response
                threadData.lastPageTemplateJsonMinimized = jsonMinimize(kb.pageTemplate)
                threadData.lastPageTemplateStructural = "\n".join(sorted(extractStructuralTokens(kb.pageTemplate)))
                threadData.lastPageTemplate = kb.pageTemplate

            seqMatcher.set_seq1(threadData.lastPageTemplateCleaned)

        if not pageLength:
            pageLength = len(page)

    if kb.nullConnection and pageLength:
        if not seqMatcher.a:
            errMsg = "problem occurred while retrieving original page content "
            errMsg += "which prevents sqlmap from continuation. Please rerun, "
            errMsg += "and if the problem persists turn off any optimization switches"
            raise SqlmapNoneDataException(errMsg)

        ratio = 1. * pageLength / len(seqMatcher.a)

        if ratio > 1.:
            ratio = 1. / ratio
    else:
        # Preventing "Unicode equal comparison failed to convert both arguments to Unicode"
        # (e.g. if one page is PDF and the other is HTML)
        if isinstance(seqMatcher.a, six.binary_type) and isinstance(page, six.text_type):
            page = getBytes(page, kb.pageEncoding or DEFAULT_PAGE_ENCODING, "ignore")
        elif isinstance(seqMatcher.a, six.text_type) and isinstance(page, six.binary_type):
            seqMatcher.set_seq1(getBytes(seqMatcher.a, kb.pageEncoding or DEFAULT_PAGE_ENCODING, "ignore"))

        if any(_ is None for _ in (page, seqMatcher.a)):
            return None
        elif seqMatcher.a and page and seqMatcher.a == page:
            ratio = 1.
        elif kb.skipSeqMatcher or seqMatcher.a and page and any(len(_) > MAX_DIFFLIB_SEQUENCE_LENGTH for _ in (seqMatcher.a, page)):

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at lib/request/comparison.py:158 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26). Data as JSON: /api/errors/eebdaf44bfff9979. Report an issue: GitHub.