Nginx: [info] client prematurely closed connection while reading response header from upstream / access log status 499
The client (browser, mobile app, load balancer) disconnected before Nginx finished the response; Nginx logs status 499.
client prematurely closed connection while reading response header from upstream499 Client Closed Request[info] client prematurely closed connectionnginx 499 status client closed connectionclient closed connection while waiting for request Meaning
Not an Nginx error code you send, but a log status. Causes: users navigating away, short client/proxy timeouts (ELB idle timeout 60 s, mobile apps), slow upstreams. Investigate slow endpoints, raise client/LB timeouts, use proxy_ignore_client_abort on; for must-complete jobs, and move long work to async processing.
Common causes
- Slow upstream response and impatient client
- Client/LB timeout shorter than the backend
- Users cancelling requests
- Mobile network drops
- Health checks with short timeouts
⚡ Quick fix
- Find slow requests (add
$request_timeand$upstream_response_timeto the log) - Raise the client/LB timeouts or speed up the backend
proxy_ignore_client_abort on;only for operations that must complete
Detailed fix by platform
Linux
awk '$9==499 {print $7}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head
How to diagnose
- URLs — Which endpoints?
- Timing — request_time?
- Timeouts — Client/LB limits?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Nginx / Apache
- nginx: [emerg] unknown directive Nginx: nginx: [emerg] unknown directive "x" in /etc/nginx/sites-enabled/x:12 — configuration file test failed
- AH00558 Apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name
- AH00072: make_sock: could not bind to address 0.0.0.0:80 Apache: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 / AH00015: Unable to open logs
Other ways to find it
Where this error sits
Origin: Edge & web server. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026