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
| Cause | Side | Typical sign |
|---|---|---|
| Antivirus or firewall scanning HTTPS | Visitor | Many sites fail on one computer only |
| Browser extension or corrupted cache | Visitor | Works in Incognito or another browser |
| Oversized cookies or request headers | Either | Fails while logged in, works in Incognito |
Illegal response header (uppercase name, Connection, Transfer-Encoding, a line break in a value) | Server | Fails for everyone on one page or one app |
Response shorter than its Content-Length | Server | Large files or downloads stop part way |
| nginx cannot write proxy temp files (disk full, wrong permissions) | Server | Only large responses fail; small pages are fine |
| Bug in server, proxy, CDN or application HTTP/2 code | Server | Started after an upgrade or config change |
If you are a visitor
Try these in order. The first four fix most visitor-side cases.
- Reload once, then test in an Incognito window. Press
Ctrl+Shift+Non Windows orCmd+Shift+Non 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. - Clear cookies and cached files for the site. On Windows press
Ctrl+Shift+Delete; on a Mac pressCmd+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. - Disable extensions one at a time. Go to
chrome://extensionsand switch off ad blockers, privacy tools, coupon helpers and anything that modifies pages or headers. Reload after each. - 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.
- Turn off any VPN or proxy, including corporate proxies and traffic-filtering apps on Android. Retry.
- 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.
- Update Chrome. Open
chrome://settings/helpon a computer, or update Chrome from the Play Store or App Store. Restart the browser afterwards. - Flush Chrome's open connections. Visit
chrome://net-internals/#socketsand 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-EncodingandUpgrade. Code that setsConnection: closeorTransfer-Encoding: chunkedby 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 )
- IETF: RFC 9113: HTTP/2
- Chromium: net_error_list.h
- nginx.org: Module ngx_http_v2_module
- nginx.org: Module ngx_http_proxy_module
- curl: curl man page
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.