Fix Discord Error 502 Bad Gateway Or Gateway Unavailable (2025)
Updated: 11/29/2025
You open Discord to join a call or check a server, but instead of your channels loading you see a browser page or in app banner with Error 502 Bad Gateway or Gateway unavailable. Friends might still be chatting while your client refuses to connect, which makes the situation even more frustrating. The truth is that sometimes this code means Discord itself is having issues, but local cache, DNS, or network filters can also cause 502 responses that only you see.
Table of Contents
Method 1: Check Discord Status And Rule Out Global Outages
Before changing settings on your devices, you should confirm whether Discord is actually down for everyone or only for you. This saves time, because no amount of local tweaking will fix a true infrastructure incident on their side.
Step 1: Test Discord On A Second Device
Try opening Discord on your phone using mobile data, or in a browser on another computer. If both devices show Error 502 at the same time, it is a strong hint that Discord is having a wider problem rather than a configuration issue on your main PC.
Step 2: Compare Browser And Desktop App Behavior
If the desktop app fails but the web version at discord.com/app works, the issue is likely related to the local client cache or its internal browser. If both fail in the same way while other sites work, you are probably dealing with a routing or regional issue.
Step 3: Wait A Short Window And Avoid Constant Reloading
If you suspect a global or regional outage, give Discord some time to recover and avoid spamming reconnect, which can temporarily rate limit your IP. Once status indicators or other users confirm that services are back, try opening Discord again with a fresh session.
Method 2: Clear Discord Cache And Refresh Local DNS
On Windows click Start, type cmd, right click Command Prompt, and choose Run as administrator. In the terminal, run the following command to clear your DNS cache.
Close the window, reopen Discord, and check whether servers load without Error 502 or gateway unavailable messages.
Method 3: Fix Network Filters, Proxies, And VPN Conflicts
To isolate whether the problem is with your home or office connection, connect your computer to a mobile hotspot or different Wi Fi network and try Discord there. If the 502 error disappears on the alternate network, your primary ISP or router is likely involved and may require additional configuration or support.