derrod / legendary

Legendary - A free and open-source replacement for the Epic Games Launcher
https://legendary.gl/discord
GNU General Public License v3.0
4.59k stars 161 forks source link

Legendary isn't authenticating #586

Open Anastazbnko opened 1 year ago

Anastazbnko commented 1 year ago

Platform

Operating system and version: Fedora Linux 38 Legendary version (legendary -V): 0.20.33, "Undue Alarm", installed via DNF

Expected Behavior

Legendary successfully authenticates

Current Behavior

Legendary throws an error: (output of legendary -v auth) [cli] INFO: Testing existing login data if present... [WebViewHelper] DEBUG: Webview unavailable, disabling webview login (Exception: ModuleNotFoundError("No module named 'webview'")). Please login via the epic web login! If the web page did not open automatically, please manually open the following URL: https://legendary.gl/epiclogin Please enter the "authorizationCode" value from the JSON response: <redacted> [Core] ERROR: Logging in failed with JSONDecodeError('Expecting value: line 1 column 1 (char 0)'), please try again. [cli] ERROR: Login attempt failed, please see log for details.

Steps to Reproduce

  1. Run legendary auth
  2. Legendary throws an error and authentication fails

Additional information

This first popped up when I tried list-games, while I was still supposed to be authenticated. I proceeded to clear my user.json and try to login again, which didn't work so I opened this issue.

Drakonas commented 1 year ago

I am also having this issue. I haven't touched my legendary instance since 0.20.31. I replaced the exe with 0.20.33.

SkyNinja commented 1 year ago

I have what's probably a variation of this problem. In my case, it's impossible to authenticate with 0.20.33, as the webview window never appears. Instead, the program just hangs indefinitely when it would. I went back to 0.20.32 to authenticate and had no trouble.

68498468 commented 1 year ago

I have what's probably a variation of this problem. In my case, it's impossible to authenticate with 0.20.33, as the webview window never appears. Instead, the program just hangs indefinitely when it would. I went back to 0.20.32 to authenticate and had no trouble.

Thx, work for me too

68498468 commented 1 year ago

I have what's probably a variation of this problem. In my case, it's impossible to authenticate with 0.20.33, as the webview window never appears. Instead, the program just hangs indefinitely when it would. I went back to 0.20.32 to authenticate and had no trouble.

Thx, work for me too

after a legendary auth --delete and legenray auth, the webview window appear in 0.20.33

Sangresz commented 1 year ago

I have what's probably a variation of this problem. In my case, it's impossible to authenticate with 0.20.33, as the webview window never appears. Instead, the program just hangs indefinitely when it would. I went back to 0.20.32 to authenticate and had no trouble.

Thx, work for me too

after a legendary auth --delete and legenray auth, the webview window appear in 0.20.33

Yeah that worked perfectly for me too 😄

AyraHikari commented 7 months ago

I got this issue as well

[cli] INFO: Testing existing login data if present...
[WebViewHelper] INFO: Opening Epic Games login window...
[WebViewHelper] DEBUG: Loaded url: https://www.epicgames.com/id/logout
[WebViewHelper] DEBUG: Loaded url: https://www.epicgames.com/id/login
[0131/181305.499:ERROR:check.cc(314)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[0131/181312.151:ERROR:check.cc(314)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[0131/181317.716:ERROR:check.cc(314)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[0131/181323.368:ERROR:check.cc(314)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[WebViewHelper] DEBUG: Got exchange code (stage 1)!
[Core] ERROR: Logging in failed with JSONDecodeError('Expecting value: line 1 column 1 (char 0)'), please try again.
[WebViewHelper] DEBUG: Loaded url: https://legendary.gl/goodbye
[WebViewHelper] INFO: Closing login window...
[cli] ERROR: WebView login attempt failed, please see log for details.
AyraHikari commented 7 months ago

Just fixed it, i got that error because my home network using private vpn. Epic detected it as bot and require me to solve their captcha. legendary doesn't forward captcha header, so that's why i get null result and json decode error. Just whitelist ol.epicgames.com in your router for prevent route in vpn, and everything will be working