What the Error Means
HTTP/3 carries web traffic over QUIC, a protocol that runs on UDP instead of TCP; see TCP vs UDP. A browser learns that a site offers HTTP/3 from the Alt-Svc header on an earlier response, remembers it, and tries QUIC on UDP port 443 next time. ERR_QUIC_PROTOCOL_ERROR appears when that QUIC connection starts and then breaks. Browsers usually fall back to TCP when UDP is blocked outright, so the error tends to point to traffic that is damaged or cut off partway.
What a Visitor Can Try
- Reload: the browser often retries over TCP.
- Try another browser: if it works there, the problem is in the first browser's settings or extensions.
- Turn off a VPN or proxy for one test: some handle UDP poorly.
- Use another network: some workplace and public networks block or throttle UDP.
- Try a private window: it starts without the site's stored data and usually without extensions.
Does the Site Offer HTTP/3?
curl -sI https://example.com/ | grep -i alt-svc
A line such as alt-svc: h3=":443"; ma=86400 tells browsers to use HTTP/3 on port 443 and to remember that for 86,400 seconds. If no line appears, the site does not advertise HTTP/3 and the error comes from the visitor's side or a CDN in front.
Open UDP 443 in the Firewall
A common server-side cause is advertising HTTP/3 while UDP 443 is closed or filtered somewhere on the path. On Ubuntu and Debian with ufw:
sudo ufw allow 443/udp
On AlmaLinux and Rocky Linux with firewalld:
sudo firewall-cmd --permanent --add-port=443/udp
sudo firewall-cmd --reload
Open it in any firewall in your provider's control panel too, then confirm the web server listens on it with sudo ss -ulnp | grep ':443'. See UFW allow port for more.
HTTP/3 Settings in Nginx
Nginx supports HTTP/3 from version 1.25.0, through a module its documentation still calls experimental, and only when the binary was built with --with-http_v3_module. Check your build:
nginx -V 2>&1 | grep -o with-http_v3_module
A working server block listens on TCP and UDP and sends the header:
server {
listen 443 ssl;
listen 443 quic reuseport;
http2 on;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
add_header Alt-Svc 'h3=":443"; ma=86400' always;
}
QUIC works only with TLS 1.3, so keep TLSv1.3 in ssl_protocols. Socket options such as reuseport may appear only once for an address and port, so other server blocks on the same port use listen 443 quic;. Test with sudo nginx -t before reloading.
Stop Advertising HTTP/3
If you cannot make UDP work, remove the quic listen lines and the Alt-Svc header, test, and reload. Browsers that saw the header may keep trying HTTP/3 until the ma time runs out (24 hours when ma is left out), so lower it first when you plan the change.
Behind a CDN
When the site is proxied through Cloudflare, the visitor's QUIC connection ends at the CDN; Cloudflare does not use HTTP/3 toward your server. The HTTP/3 setting in the Cloudflare dashboard controls the visitor side, and your server needs no UDP 443 for that. Turning the setting off for a test shows whether the problem is there. More in what is a CDN.
Test and Confirm
curl --version | grep -i http3
curl --http3-only -sI https://example.com/
Not every curl build supports HTTP/3; if the first command prints nothing, test from a machine whose curl has it. Use --http3-only rather than --http3 for this test: --http3 falls back to an earlier HTTP version and can hide the failure. In the browser, the network panel of the developer tools shows the protocol of each request: h3 means HTTP/3 works, h2 with no error means the fallback works. A related error over TCP is covered in ERR_HTTP2_PROTOCOL_ERROR.