Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legendary isn't authenticating #586

Open
Anastazbnko opened this issue Jul 30, 2023 · 7 comments
Open

Legendary isn't authenticating #586

Anastazbnko opened this issue Jul 30, 2023 · 7 comments

Comments

@Anastazbnko
Copy link

Anastazbnko commented Jul 30, 2023

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.

  • Note - I have tried running with --disable-webview, results are the same

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.

@Anastazbnko Anastazbnko changed the title Legendary can't authenticate Legendary isn't authenticating Jul 30, 2023
@Drakonas
Copy link

Drakonas commented Aug 11, 2023

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
Copy link

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
Copy link

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
Copy link

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
Copy link

Sangresz commented Sep 5, 2023

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants