A 502 Bad Gateway error means a server acting as a gateway (like a proxy or load balancer) received an invalid response from an upstream server. This is always a server-side issue — not caused by your device or network.
First, check if your internet is working and what your current IP address is:
🔍 Check My IP Address →Modern websites use multiple servers — a front-end server (like Nginx or Cloudflare) passes requests to a back-end application server. A 502 error means the front-end server received a broken, empty, or invalid response from the back-end. Common causes include: the back-end server is down or overloaded, the application crashed, a deployment went wrong, the back-end timed out under heavy load, or a misconfigured proxy or load balancer.
Ctrl+F5 for a hard reloadCtrl+Shift+DeleteOccasionally DNS issues can make a working server appear to return 502. Switch to Google DNS (8.8.8.8) or Cloudflare (1.1.1.1) and retry.
ipconfig /flushdns in Command Promptsudo systemctl restart php-fpm or pm2 restart alltail -f /var/log/nginx/error.log✅ Fixed it? Visit tools.examineip.com to confirm your IP address and connection are working correctly.
← Back to the complete guide: Internet Errors Hub
Last updated: March 30, 2026 • Report an error