sqlmapproject/sqlmap · error · H2Error

too many informational responses

Error message

too many informational responses

What it means

Raised in _complete_header_block when a stream exceeds the configured cap on 1xx informational responses. Endless preliminary responses (e.g. 100 Continue loops) would starve the final response, so the exchange is aborted.

Solutions

  1. Fix the server that keeps emitting informational responses
  2. Tune the informational-response limit if legitimately needed
  3. Retry on a new connection once transient misbehavior is ruled out
Defensive patterns

Strategy: try-catch

When it happens

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

Appendix: source

Thrown at lib/request/http2.py:1105

        except H2CompressionError:
            self.usable = False
            raise
        end_stream = state.block_end_stream
        state.block = None
        state.block_end_stream = False

        if state.headers is None:
            status, content_length = _validate_response_field_section(headers, trailers=False)
            if 100 <= status < 200:
                if end_stream:
                    self._connection_error("informational response ended the stream")
                if content_length is not None:
                    self._connection_error("informational response carried content-length")
                state.informational_count += 1
                state.informational_bytes += _field_section_size(headers)
                if state.informational_count > MAX_INFORMATIONAL_RESPONSES:
                    self.usable = False
                    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")

View on GitHub (pinned to 0a35b20e39)