Why do you encounter a 503 error when using a proxy?
A 503 error stems from one of three sources: website overload or maintenance, target anti-bot systems, or the proxy temporarily failing to open a connection.
Website overloaded or undergoing maintenance
The site returns 503 to everyone, with or without a proxy. It is usually accompanied by a maintenance page and a Retry-After header.
Website blocking automated requests
Some anti-bot systems return 503 or a challenge page for bot-like requests: missing cookies, no JavaScript execution, or high request frequency. Real browsers usually pass, while direct automated requests fail.
Proxy temporarily unable to establish a connection
curl -v shows 503 immediately after CONNECT: the proxy could not connect to the target site at that moment. This usually resolves on its own after a few minutes.
Step-by-step troubleshooting
- Open the site using your regular network. If it still returns 503, the issue is on the website; wait for it to recover.
- Through the proxy, open https://api.ipify.org. If this page loads, the proxy is still working.
- Run curl -v -x http://IP:PORT -U user:pass https://trang-dich and check the line after CONNECT to see whether the proxy or the site returned 503.
- If only automated programs encounter 503 while browsers can access the site, the site is filtering bots: slow down request rates, persist cookies, and use automated browsers (Playwright) instead of sending direct requests.
- If 503 errors from the proxy persist across all sites, contact ONET support with the proxy IP and the time of the error.
How do you handle 503 errors in source code?
Treat 503 as a temporary error: retry with an exponential backoff delay and a capped retry count.
- Treat 503 as a temporary error: retry with exponential backoff and respect the Retry-After header.
- Limit retry attempts (for example, 3 to 5 times) to avoid worsening server overload.
- Log error codes, the proxy used, and the target site to identify where errors are concentrated.
- For bot-filtering sites, static ISP proxies are generally treated better than datacenter IPs.
Need proxies? Buy dedicated proxies with automatic activation
Dedicated IPv4 proxies in 9 countries from 20.000₫/IP/month when buying from 2.000 IPs (39.000₫ for 1 IP) and Vietnam, US static ISP proxies. HTTP(S) and SOCKS5 with username and password, unlimited bandwidth, automatic activation after payment. Note that Vietnam proxies currently use HTTP(S) protocol and do not yet support SOCKS5.
Buy proxies now