Skip to content
MtrXTools

ERR_HTTP2_PROTOCOL_ERROR

The HTTP/2 response was malformed or cut short

Seen in Chrome, Edge, Brave

The server sent HTTP/2 data the browser considered invalid, or the stream was reset part-way through the response.

Common causes

  • The application sends an invalid header, such as one with illegal characters or a connection-specific header like "Connection" or "Transfer-Encoding".
  • A reverse proxy truncated the response because it ran out of disk space for buffering or hit a timeout.
  • A CDN, proxy or antivirus in the middle mangles HTTP/2 traffic.

How to fix it

  1. Check the web server and proxy error logs at the time of the request.
  2. Remove invalid or hop-by-hop headers from the application response.
  3. Free disk space and check permissions on proxy temp directories (e.g. nginx proxy_temp_path).
  4. Test with "curl --http2 -v" to see where the stream fails.
Inspect the response headers

Got a different message? Paste it into the error explainer.

Related errors

All 40 Browser & TLS errors