League of Legends 'Unexpected Error' on Login: How to Fix It

the “unexpected error” message when logging into League of Legends or the Riot Client is vague by design – it covers several different underlying causes. here’s the fix process covering all of them.

Step 1: Check server and service status

status.riotgames.com – if login servers are down, the “unexpected error” is Riot’s side and waiting is the only option.

Step 2: Restart the Riot Client completely

The client sometimes gets into a broken state that a simple restart resolves. Close the client from the system tray (right-click the Riot icon > Quit), wait a few seconds, and reopen it. A full close rather than just closing the window ensures all background processes stop.

Step 3: Run as administrator

Right-click the Riot Client shortcut > Run as administrator. Some permission-related login issues resolve with elevated privileges.

Step 4: Clear Riot Client cache

Navigate to:

  • %LocalAppData%\Riot Games\Riot Client
  • Delete the Data folder inside (not the entire Riot Client folder)

Also clear:

  • %AppData%\Riot Games – delete the contents

Relaunch the client. It will rebuild its cache on startup.

Step 5: Flush DNS and reset network

Open Command Prompt as administrator:

ipconfig /flushdns
netsh winsock reset

Restart and try logging in again.

Step 6: Disable VPN or proxy

If you’re using a VPN, disable it before logging in. Riot’s login system sometimes flags VPN IP addresses and returns vague errors rather than specific ones.

Step 7: Check firewall and antivirus

Temporarily disable your firewall and antivirus and try logging in. If it works, add Riot Client and League of Legends to the exceptions list rather than leaving protection disabled.

Step 8: Reinstall the Riot Client

If nothing else works, a clean reinstall resolves issues caused by corrupted installation files. Uninstall via Settings > Apps, then delete any remaining Riot Games folders in Program Files and AppData before downloading a fresh installer from riotgames.com.