SECURITY WARNING: Never run commands you don't understand. Always review code before execution. Use at your own risk.
Proxy Added 12 October 2025

Proxy authentication required

Proxy server requires authentication before allowing the request to proceed.

Quick fix

Read the commands before running them. Anything that restarts a service, deletes data or changes permissions should be tried on a non-production system first.

Quick fix
# Authenticate with proxy
curl --proxy-user username:password --proxy proxy.example.com:8080 https://example.com
export HTTP_PROXY=http://user:[email protected]:8080

How to diagnose Proxy errors

A proxy error tells you about the proxy's relationship with the upstream, not about the upstream's business logic. nginx's 502 means it could not get a valid response; 504 means the upstream did not answer in time; Envoy's flag codes (UH no healthy upstream, UF upstream connection failure, NR no route) are far more precise than the status code. Reading those flags is the fastest path to a diagnosis.

If the quick fix above does not resolve it, work through these steps. They apply to this whole class of error, not just to this one message, which is usually what saves the time.

  1. Include upstream detail in the access log format: $upstream_addr, $upstream_status and $upstream_response_time in nginx turn a generic 502 into a specific one.
  2. Bypass the proxy and call the upstream directly from the proxy host. If that works, the issue is proxy configuration: timeouts, buffers, DNS caching or TLS to the backend.
  3. For Envoy, read the response flags in the access log rather than the status code. UH, UF, UO and NR each have distinct fixes.
  4. Check that the proxy re-resolves DNS. nginx caches upstream IPs at startup by default, which breaks when backends move. Use a resolver directive with a variable upstream.
  5. For header-size and body-size errors, raise the limit at every layer; CDN, load balancer and origin each enforce their own.

Tools worth reaching for

  • nginx -T
  • envoy access logs (response flags)
  • haproxy -c -f
  • curl --resolve
  • traefik dashboard

Authoritative references

Primary documentation for this error, worth reading before applying any fix in production.

developer.mozilla.org

Related Proxy errors

See all 17 Proxy errors →

Browse other categories

Something missing or wrong?

This entry is maintained by hand. If the fix is out of date, incomplete, or you have a better one, email a correction and it will be reviewed.