How do I fix Discord Error 2012?

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.

  1. Check Discord status.
    If login servers are down, you wait. Use status.discord.com.

  2. 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.

  3. 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.

  1. Disable VPN, proxy, custom DNS filters.
    These break login handshakes more often than ppl think.

  2. Fix system time.
    Wrong date or time causes auth errors. Set time and timezone to automatic.

  3. Reset network stack on Windows.
    Open Command Prompt as admin, run:
    ipconfig /flushdns
    netsh winsock reset
    Then reboot.

  4. If you use 2FA, re-enter backup code flow.
    A stuck auth token sometiems triggers weird login errors.

  5. 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.