sqlmapproject/sqlmap · error · H2ProtocolError

received frame exceeds local maximum frame size

Error message

received frame exceeds local maximum frame size

What it means

Error "received frame exceeds local maximum frame size" thrown in sqlmapproject/sqlmap.

Source

Thrown at lib/request/http2.py:550

def _recv_exact(sock, count):
    if count < 0:
        raise ValueError("negative receive size")
    chunks = []
    received = 0
    while received < count:
        chunk = sock.recv(count - received)
        if not chunk:
            raise H2TransportError("connection closed by peer")
        chunks.append(chunk)
        received += len(chunk)
    return b"".join(chunks)


def _read_frame(sock, max_frame_size=DEFAULT_MAX_FRAME_SIZE):
    length, ftype, flags, sid = decode_frame_header(_recv_exact(sock, 9))
    if length > max_frame_size:
        raise H2ProtocolError("received frame exceeds local maximum frame size")
    payload = _recv_exact(sock, length) if length else b""
    return ftype, flags, sid, payload


def _idna_host(host):
    if isinstance(host, bytes):
        try:
            host = host.decode("ascii")
        except UnicodeDecodeError:
            try:
                host = host.decode("utf-8")
            except UnicodeDecodeError:
                raise H2Error("hostname bytes are neither ASCII nor UTF-8")
    if not isinstance(host, text_type):
        host = text_type(host)
    if host.startswith("[") and host.endswith("]"):
        host = host[1:-1]
    if not host:

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at lib/request/http2.py:550 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/8adfc9b39b7c28c1. Report an issue: GitHub.