Talk to the NOC, IST hours — +91 75994 50220 support@bigdomainhost.com
Guide

How to fix ERR_HTTP2_PROTOCOL_ERROR in Chrome and on your server

This error means the HTTPS connection worked but the HTTP/2 conversation on top of it broke. Here is how visitors can clear it in a few minutes, and how site owners can find the bad header, truncated response or proxy fault behind it.

Short answer: ERR_HTTP2_PROTOCOL_ERROR means Chrome received an HTTP/2 response or frame that breaks the protocol rules, so it abandoned the request. For visitors, the usual causes are antivirus HTTPS scanning, an extension or oversized cookies: test in Incognito, clear the site's cookies and pause HTTPS scanning. For site owners, the usual causes are forbidden response headers, a response shorter than its Content-Length, or nginx failing to buffer large responses; reproduce it with curl --http2 -v.

What ERR_HTTP2_PROTOCOL_ERROR means

ERR_HTTP2_PROTOCOL_ERROR (shown in DevTools and logs as net::ERR_HTTP2_PROTOCOL_ERROR) means Chrome was talking to the website over HTTP/2 and received something that breaks the HTTP/2 rules. The TCP connection and the HTTPS handshake both worked. What failed was the conversation on top of them: a frame Chrome could not parse, a response header HTTP/2 forbids, a response that ended before its declared length, or a stream the server or a middlebox cancelled with a PROTOCOL_ERROR code.

HTTP/2, defined in RFC 9113, sends each request and response as a numbered stream of binary frames over one shared connection. Either side can kill a single stream with an RST_STREAM frame, or end the whole connection with a GOAWAY frame. When Chrome sees a malformed response, or gets one of those frames with an error code, it abandons the request and shows this error. Edge, Brave and Opera use the same Chromium networking code and show the same text.

The important point: the error is usually caused by the server, a proxy or CDN in front of it, or software on the visitor's device that rewrites HTTPS traffic. Chrome is simply the strictest party in the chain and the one that reports it.

Common causes at a glance

CauseSideTypical sign
Antivirus or firewall scanning HTTPSVisitorMany sites fail on one computer only
Browser extension or corrupted cacheVisitorWorks in Incognito or another browser
Oversized cookies or request headersEitherFails while logged in, works in Incognito
Illegal response header (uppercase name, Connection, Transfer-Encoding, a line break in a value)ServerFails for everyone on one page or one app
Response shorter than its Content-LengthServerLarge files or downloads stop part way
nginx cannot write proxy temp files (disk full, wrong permissions)ServerOnly large responses fail; small pages are fine
Bug in server, proxy, CDN or application HTTP/2 codeServerStarted after an upgrade or config change

If you are a visitor

Try these in order. The first four fix most visitor-side cases.

  1. Reload once, then test in an Incognito window. Press Ctrl+Shift+N on Windows or Cmd+Shift+N on a Mac. On Android, tap the three-dot menu and choose New Incognito tab. Incognito starts without your cookies and, by default, without extensions. If the page loads there, the cause is a cookie or an extension.
  2. Clear cookies and cached files for the site. On Windows press Ctrl+Shift+Delete; on a Mac press Cmd+Shift+Delete. Tick Cookies and other site data and Cached images and files. To clear just one site, click the icon to the left of the address, open Site settings and choose Delete data. On Android, open the three-dot menu, then Settings, Privacy and security, Delete browsing data. Very large or corrupted cookies are a frequent trigger on sites you are logged in to.
  3. Disable extensions one at a time. Go to chrome://extensions and switch off ad blockers, privacy tools, coupon helpers and anything that modifies pages or headers. Reload after each.
  4. Pause HTTPS scanning in your antivirus. Security suites that inspect encrypted traffic (often called web shield, HTTPS scanning or SSL filtering) decrypt and re-encrypt every connection, and their HTTP/2 handling is a well-known source of this error. Turn the feature off briefly. If the site now works, add an exception for it or update the antivirus; do not leave protection off.
  5. Turn off any VPN or proxy, including corporate proxies and traffic-filtering apps on Android. Retry.
  6. Try another network. Switch between Wi-Fi and mobile data (Jio, Airtel, Vi or BSNL). If it fails everywhere, the problem is almost certainly the website. If it fails only on office, college or hostel Wi-Fi, a firewall on that network is interfering.
  7. Update Chrome. Open chrome://settings/help on a computer, or update Chrome from the Play Store or App Store. Restart the browser afterwards.
  8. Flush Chrome's open connections. Visit chrome://net-internals/#sockets and click Flush socket pools. This drops any stuck HTTP/2 connections without restarting the browser.

If none of this helps and other people report the same failure, the site needs fixing, and the rest of this guide is for its owner. Send them the URL, the time and a screenshot of the DevTools Network tab.

If you run the website

1. Reproduce it with curl over HTTP/2

curl gives a precise reason where Chrome only shows a generic page. Force HTTP/2 and watch the end of the output:

curl --http2 -v -o /dev/null https://example.com/failing/page
curl --http2 -sI https://example.com/failing/page

A healthy response shows using HTTP/2 early on and a status line such as HTTP/2 200. A failure typically ends with a line like HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1) or INTERNAL_ERROR (err 2), or with curl complaining about an invalid header. Now compare with HTTP/1.1:

curl --http1.1 -v -o /dev/null https://example.com/failing/page

If HTTP/1.1 works and HTTP/2 fails, the fault is in what you send over HTTP/2. For frame-level detail, the nghttp client (package nghttp2-client on Debian and Ubuntu) prints every frame, including any RST_STREAM or GOAWAY and its error code:

nghttp -nv https://example.com/failing/page

2. Check response headers for anything HTTP/2 forbids

HTTP/1.1 tolerates headers that HTTP/2 does not. Under RFC 9113, a response is malformed if it contains:

  • Header names with uppercase letters. nginx and most servers lowercase names for you, but an application that speaks HTTP/2 itself (for example a Node.js or Go server terminating HTTP/2 directly) may not.
  • Connection-specific headers: Connection, Keep-Alive, Proxy-Connection, Transfer-Encoding and Upgrade. Code that sets Connection: close or Transfer-Encoding: chunked by hand is a classic culprit.
  • Values containing a line feed, carriage return or NUL character, or with leading or trailing spaces. These often come from a redirect URL, a filename in Content-Disposition, or user input copied into a header.
  • Empty or invalid header names, sometimes produced by a misconfigured rule or a plugin.

Print only the headers and read them carefully: curl --http1.1 -sI https://example.com/page shows what the application sends before any HTTP/2 conversion.

3. Check for truncated responses and proxy buffering problems

If the declared Content-Length is larger than the body that actually arrives, Chrome reports a protocol error. The two usual reasons are an application that sets Content-Length and then compresses or alters the body, and a reverse proxy that cannot finish buffering a large response.

When nginx proxies a response bigger than its memory buffers, it writes the overflow to a temporary file. If the disk is full or the nginx worker user cannot write to that directory, the response is cut short. The error log says so clearly:

df -h
sudo grep -iE "temp|permission denied|no space" /var/log/nginx/error.log | tail -n 20
ls -ld /var/lib/nginx /var/lib/nginx/proxy

Free disk space or fix the ownership of the temp directories (paths vary by distribution). For very large downloads, you can also set proxy_max_temp_file_size or turn proxy_buffering off for that location only. For PHP-FPM the equivalent directives start with fastcgi_.

4. Check nginx HTTP/2 settings and header size limits

Since nginx 1.25.1, HTTP/2 is enabled with its own directive, and the http2 parameter of listen is deprecated:

server {
    listen 443 ssl;
    http2 on;
    large_client_header_buffers 4 16k;
    ...
}

Since nginx 1.19.7, large_client_header_buffers also limits HTTP/2 request headers, replacing the old http2_max_field_size and http2_max_header_size directives. The default (4 buffers of 8k) can be too small for sites that set many or large cookies, so logged-in visitors fail while new visitors are fine. Raise it modestly, and better still, trim the cookies. Run sudo nginx -t before every reload.

Do not confuse this with upstream sent too big header in the error log. That means the backend's response headers exceeded proxy_buffer_size or fastcgi_buffer_size, and visitors get a 502 Bad Gateway rather than a protocol error.

5. Look at the layer in front: CDN, load balancer or WAF

If a CDN, load balancer or web application firewall terminates HTTP/2, the visitor's browser talks HTTP/2 to it, not to you. Test your origin directly by pinning the hostname to its IP, for example curl --http2 -v --resolve example.com:443:203.0.113.10 https://example.com/, and compare. If the origin is clean, the edge is producing the error; check its logs, any header rewriting rules and its HTTP/2 to origin setting.

6. Update and isolate

Protocol bugs get fixed in releases of nginx, Apache, LiteSpeed, Node.js and their HTTP/2 libraries. If the error began after an upgrade or a config change, roll back that change first. You can switch HTTP/2 off briefly (http2 off; in nginx) to confirm the diagnosis, but treat that as a test, not a fix. On a Bigdomainhost KVM VPS, take a snapshot before an upgrade so you can roll back in minutes if the error appears.

How to tell which side the problem is on

  • Fails on one device only, many sites affected: visitor side. Antivirus HTTPS scanning, an extension or a VPN is the usual cause.
  • Fails in normal Chrome, works in Incognito: cookies or extensions. If clearing the site's cookies fixes it, the site owner should still check header size limits.
  • Fails for everyone on every network: server side. Reproduce with curl --http2 -v.
  • Fails only on big files, exports or downloads: server side, usually a truncated response or a proxy temp file problem.
  • Works with curl --http1.1, fails with --http2: a header or framing problem specific to HTTP/2.

For hard cases, record a Chrome network log at chrome://net-export, reproduce the error, stop logging and open the file in the NetLog viewer. Search for HTTP2_SESSION events; a received RST_STREAM or GOAWAY entry shows the error code and which stream failed.

Related errors look similar but point elsewhere. ERR_QUIC_PROTOCOL_ERROR means the browser was using HTTP/3; see the QUIC protocol error guide. A failure during the handshake is covered in the ERR_SSL_PROTOCOL_ERROR guide, and a connection cut with no HTTP/2 error at all is covered in the connection reset guide.

HTTP/2 errors on Bigdomainhost

On a KVM VPS you have root access, so you can run every curl, nginx and log check above yourself. On Web & cPanel hosting, the LiteSpeed web server is managed for you; if a page on your site shows this error for everyone, send support the URL, the time and the output of curl --http2 -v. Phone support runs in IST business hours, and WhatsApp is available any time, on +91 75994 50220.

Sources (checked )

How Bigdomainhost can help

If you would rather not tune proxies, buffers and HTTP/2 settings yourself, our Web & cPanel hosting runs your site on a LiteSpeed web server that we manage, on servers in Mumbai, with free Let's Encrypt SSL and free migration from your current host. If the error is on a site you already run, send our engineers the URL and your curl output on WhatsApp at any time, or call in IST hours, and they will work through it with you.

Get managed cPanel hosting Get help with this error

Answers

Frequently asked questions

Still unsure? Call +91 75994 50220 or write to support@bigdomainhost.com — a human replies in IST hours.

What does ERR_HTTP2_PROTOCOL_ERROR mean?

It means Chrome connected to the site over HTTP/2 and received a response or frame that breaks the HTTP/2 rules, or the server cancelled the request with a protocol error code. The secure connection itself worked. The fault usually lies with the server, a proxy or CDN, or software on your device that intercepts HTTPS.

How do I fix ERR_HTTP2_PROTOCOL_ERROR in Chrome?

Open the page in an Incognito window. If it loads, clear the site's cookies and cached files and disable extensions one at a time. If it still fails, pause HTTPS scanning in your antivirus, turn off any VPN or proxy, update Chrome and try mobile data. If it fails everywhere, the website owner has to fix it.

Is ERR_HTTP2_PROTOCOL_ERROR my fault or the website's?

If many sites fail on one device only, or the page works in Incognito or on another network, the cause is on your side. If the page fails for everyone on every network and browser, the cause is on the website's server, proxy or CDN.

Can antivirus cause ERR_HTTP2_PROTOCOL_ERROR?

Yes. Antivirus features that scan HTTPS traffic decrypt and re-encrypt every connection, and faulty HTTP/2 handling in them is a common cause. Pause the HTTPS or web scanning feature briefly to test. If that fixes it, update the antivirus or add an exception for the site rather than leaving protection off.

How do I fix ERR_HTTP2_PROTOCOL_ERROR on nginx?

Run curl --http2 -v against the failing URL and read the error. Then check that the application does not send uppercase or connection-specific headers such as Connection or Transfer-Encoding, that responses are not shorter than their Content-Length, that nginx can write its proxy temp files, and that large_client_header_buffers is big enough for your cookies.

Should I disable HTTP/2 to fix the error?

Only as a short test. Turning HTTP/2 off confirms that the problem is specific to HTTP/2, but it hides the real fault and can make the site slower. Find and fix the bad header, truncated response or proxy setting, then switch HTTP/2 back on.

Support that picks up the phone.

In IST hours, in Hindi or English, and WhatsApp replies fastest at any time. Sales, migration and emergencies all reach the same engineers. No offshore queue, no 48-hour first reply.

Need cPanel or WHM with the ports already sorted?

Web & cPanel hosting comes with cPanel ready to log in to, reseller hosting adds white-label WHM, and a KVM VPS can have cPanel & WHM pre-installed. Call +91 75994 50220 or email support@bigdomainhost.com.