I keep getting Discord Error 2012 when I try to log in and use the app, and it started out of nowhere after working fine before. I’ve already tried restarting and checking my connection, but the error still comes back, so I need help figuring out what’s causing it and how to fix it.
Error 2012 on Discord is usually a login/auth issue, or a bad local cache. If restart and internet checks did nothing, do this in order.
-
Check Discord status.
If login servers are down, you wait. Use status.discord.com. -
Log in on web.
Try Discord in your browser. If web fails too, the issue is tied to your account, session, or Discord’s side. -
Remove cached app data.
On Windows:
Close Discord fully from Task Manager.
Press Win + R.
Type %appdata%
Delete the Discord folder.
Go back, open LocalAppData, delete the Discord folder there too.
Reinstall the app.
On Mac:
Open Finder.
Go to ~/Library/Application Support/
Delete Discord.
Also check ~/Library/Caches/ and remove Discord cache files.
-
Disable VPN, proxy, custom DNS filters.
These break login handshakes more often than ppl think. -
Fix system time.
Wrong date or time causes auth errors. Set time and timezone to automatic. -
Reset network stack on Windows.
Open Command Prompt as admin, run:
ipconfig /flushdns
netsh winsock reset
Then reboot. -
If you use 2FA, re-enter backup code flow.
A stuck auth token sometiems triggers weird login errors. -
Try another network.
Phone hotspot is a fast test. If hotspot works, your router, DNS, or ISP path is the issue.
If none of this works, it points to a Discord-side account flag or token problem. At tht point, contact Discord support and include the exact error, your OS, and whether browser login works.
I’d add a couple things beyond what @shizuka listed, because cache wipes and network resets are useful, but Discord 2012 can also come from the app package itself being half-broken.
Try launching Discord with admin rights once. Sounds dumb, but I’ve seen the updater fail silently and then login just breaks. Also check whether your antivirus is messing with Discord’s executable or HTTPS inspection. Bitdefender, Avast, even some corporate security tools can block auth traffic without making it obvious.
Another thing people miss: remove old credentials from Windows Credential Manager. Sometimes stale login tokens live there and Discord keeps reusing bad data. Open Credential Manager, look for Discord-related entries, delete them, then sign in again.
If you’re on Windows, install the normal desktop build from Discord, not the Microsoft Store one, or vice versa if you were already on desktop. Switching versions weirdly fixes this for some poeple. Same idea on mobile, clear app storage instead of just reinstalling.
I kinda disagree that 2FA is the main suspect unless you changed security settings recently. Most of the time it’s a corrupted local auth/session issue.
Also check firewall rules. If Discord got blocked after an update, it’ll keep failing no matter how many restarts you do. If browser login works but app login doesn’t, that narrows it down fast. If both fail, yeah, probably account-side or Discord backend being dumb again.
Try resetting your Discord password from the browser. This forces Discord to invalidate old sessions and issue a fresh login token.
Go to Discord, select “Forgot your password?”, then use the email link to set a new password. Log out of Discord on every device, wait five minutes, and sign in again.
This is simpler than reinstalling or editing Windows settings. It often fixes stuck authentication errors after an app update or expired session. If the desktop app still shows Error 2012, use Discord in your browser for now. It gives you full chat and voice access untill the app login works again.
Nobody’s asked what the full error text actually says next to that 2012. Discord’s numeric codes aren’t clean the way HTTP codes are, and the same number can show up for a connection-layer problem or an account-side reject depending on where it fires. So before you nuke folders or reset passwords, screenshot the exact wording. That single detail decides half the steps below.
The hotspot test @shizuka mentioned is the one I’d actually do first, before any of the cache surgery. It takes thirty seconds and it splits the problem cleanly: if the app logs in fine on your phone’s data, then deleting AppData folders and flushing DNS was never going to help, because the fault is upstream on your home network or ISP. People burn an hour reinstalling when the router was the culprit the whole time.
I’d hold off on the password reset from @hyperscript_86. It does invalidate sessions, sure, but it’s a heavy move for something that’s usually local, and it logs you out everywhere including devices that were working. Only reach for it if browser login also fails and you’ve got reason to think a session got stuck. Otherwise you’re solving a problem you don’t have.
The Credential Manager tip is the underrated one here. Stale entries there survive a normal reinstall, which is exactly why people say ‘I reinstalled and it still breaks.’ If you go that route, also make sure Discord is fully closed first, since the background process likes to rewrite that data the moment you delete it.
Realistic expectation: if web works and only the desktop app throws 2012, it’s a client or local auth mess and one of the above fixes it. If web fails too, stop troubleshooting your machine. That’s Discord’s side or an account flag, and no amount of winsock resets will move it.