sqlmapproject/sqlmap · error · H2Error
declared response body exceeds configured limit
Error message
declared response body exceeds configured limit
What it means
Error "declared response body exceeds configured limit" thrown in sqlmapproject/sqlmap.
Source
Thrown at lib/request/http2.py:1123
raise H2Error("too many informational responses")
if state.informational_bytes > MAX_INFORMATIONAL_HEADER_BYTES:
self.usable = False
raise H2Error("informational response headers exceed configured limit")
return
state.headers = headers
state.status = status
state.expected_content_length = content_length
state.body_forbidden = state.request_method == b"HEAD" or status in (204, 205, 304)
if status == 204 and content_length is not None:
self._connection_error("204 response must not carry content-length")
if status == 205 and content_length not in (None, 0):
self._connection_error("205 response content-length must be zero")
if state.request_method == b"CONNECT" and 200 <= status < 300 and content_length is not None:
self._connection_error("successful CONNECT response must not carry content-length")
if (not state.body_forbidden and content_length is not None and
content_length > MAX_RESPONSE_SIZE):
self.usable = False
raise H2Error("declared response body exceeds configured limit")
if end_stream:
self._finish_response(state)
else:
_validate_response_field_section(headers, trailers=True)
if not end_stream:
self._connection_error("trailing field section did not end the stream")
if _field_section_size(state.headers) + _field_section_size(headers) > MAX_HEADER_LIST_SIZE:
self.usable = False
raise H2Error("aggregate response headers exceed configured limit")
state.trailers.extend(headers)
state.headers.extend(headers)
self._finish_response(state)
def _process_header_frame(self, ftype, flags, sid, payload, states, continuation_sid):
if continuation_sid is not None:
if ftype != CONTINUATION or sid != continuation_sid:
self._connection_error("frame interleaved inside a CONTINUATION sequence")
elif ftype == CONTINUATION:View on GitHub (pinned to 0a35b20e39)
When it happens
Trigger: Thrown at lib/request/http2.py:1123 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/fdccf3f2c2f51270.
Report an issue: GitHub.