What the Error Means
HTTP/2 sends many requests over one connection, each in its own stream. When the server ends a stream in a way the protocol does not allow, or sends something the browser cannot accept, the browser drops that stream and shows ERR_
What a Visitor Can Try
- Reload: a one-time cut during a server restart goes away.
- Clear the site's cookies and cache: very large cookies and stale cached files can both play a part.
- Use a private window: it usually runs without extensions, which rules them out.
- Turn off a VPN or HTTPS inspection for one test: security software that reads HTTPS traffic can break HTTP/2.
- Use another network: a proxy on the network may be the cause.
Compare HTTP/2 and HTTP/1.1 with curl
curl -v --http2 -o /dev/null https://example.com/path/to/file
curl -v --http1.1 -o /dev/null https://example.com/path/to/fileUse the address that fails in the browser; the network panel of the developer tools shows which one. If HTTP/2 ends with an error that mentions the stream and HTTP/1.1 ends early too, the response itself is cut off. If HTTP/1.1 works and HTTP/2 fails, look at the headers.
Read the Error Log First
sudo tail -n 50 /var/log/nginx/error.logLook for an upstream that closed the connection early, for "No space left on device", and for permission errors on temporary files. See Nginx logs or Apache logs for the locations.
Full Disk and Proxy Buffers
When a response from PHP-FPM or a proxied application is larger than the memory buffers, Nginx writes the rest to a temporary file in the directories set by fastcgi_ and proxy_. If the disk is full, or the Nginx user cannot write there, the response can stop partway, and over HTTP/2 the browser then reports a protocol error.
df -h
df -iMake room on the disk as described in no space left on device. If you changed the user Nginx runs as, make the temporary directories writable by that user again.
Back End Closing Mid-Response
A PHP or application worker that dies while sending a page cuts the response. Typical reasons are an execution time limit, a memory limit, or the kernel's OOM killer:
sudo journalctl -k --since '1 hour ago' | grep -i -E 'killed process|segfault'Also read the PHP-FPM log; see PHP-FPM for its settings.
Invalid Response Headers
HTTP/2 does not allow the connection-specific headers Connection, Proxy-Connection, Keep-Alive, Transfer-Encoding, and Upgrade, and header values must not contain line breaks or NUL characters. A Content-Length that does not match the real body also breaks the stream. Print the headers as plain text over HTTP/1.1:
curl -sI --http1.1 https://example.com/path/to/fileFix headers in the application that sets them. Oversized cookies or headers sent by the browser are covered in 431 Request Header Fields Too Large.
Proxies and CDNs in Between
With a CDN or load balancer in front, each hop is a separate connection. Test the origin directly, bypassing DNS:
curl -v --http2 --resolve example.com:443:203.0.113.10 https://example.com/ -o /dev/nullIf the origin works, look at the proxy's settings and logs.
Confirm the Fix
Run the HTTP/2 curl command again: it should end with the full body received and no error. Then load the page with the developer tools open and check that every request shows h2 and completes.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations