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

java.lang.NullPointerException while doing two-factor auth #21

Open
Swawm opened this issue Jan 9, 2020 · 19 comments
Open

java.lang.NullPointerException while doing two-factor auth #21

Swawm opened this issue Jan 9, 2020 · 19 comments

Comments

@Swawm
Copy link

Swawm commented Jan 9, 2020

When I type in my two-factor auth code and hit Confirm I got freeze and an "java.lang.NullPointerException" in terminal.

@matheusfillipe
Copy link

Same problem on ubuntu 18.04.

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

Try to test with new version.

@matheusfillipe
Copy link

Now i have error #1008

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

Two factor auth window appears, or just #1008 error?

@matheusfillipe
Copy link

just #1008

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

You tried with new version I updated (from develop branch), or with old one (from master branch)?

@matheusfillipe
Copy link

Develop branch.

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

Two factor auth enabled?

@matheusfillipe
Copy link

Yes.

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

Change extension to '.jar' and try again, I've added additional console logs.
UnrealEngineLauncher.zip

@matheusfillipe
Copy link

400
{"errorCode":"errors.com.epicgames.accountportal.captcha_invalid","message":"Incorrect response. Please refresh the page."}

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

If you can, try to go to unreal engine page through browser in private window, try to login first through website and then through launcher, if this will not help, I'll try to investigate it further, currently problem is with captcha.

@matheusfillipe
Copy link

I did log on a browser's private window and still didn't help. Same error code and message.

@Erlandys
Copy link
Owner

Erlandys commented Mar 1, 2020

If you can, try this once again, if this will not help, tomorrow I'll try to check it in other PC, maybe I'll find a solution, thanks for quick feedback! :)
UnrealEngineLauncher.zip

@matheusfillipe
Copy link

400
{"errorCode":"errors.com.epicgames.accountportal.captcha_invalid","message":"Incorrect response. Please refresh the page."}

Just the error message on the GUI changed to "Incorrect response. Please refresh the page."

@Swawm
Copy link
Author

Swawm commented Mar 1, 2020

Same result as @matheusfillipe

@Erlandys
Copy link
Owner

Erlandys commented Mar 4, 2020

Hello, can you try with this? (Do not forget to rename .zip to .jar)
UnrealEngineLauncher.zip
@matheusfillipe, @Swawm

@Swawm
Copy link
Author

Swawm commented Mar 4, 2020

@Erlandys got looped window with Captcha BDA Set, when I fill all data and press Confirm login process starts again.
Here's logs output:
org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is locked) at org.sqlite.core.DB.newSQLException(DB.java:941) at org.sqlite.core.DB.newSQLException(DB.java:953) at org.sqlite.core.DB.throwex(DB.java:918) at org.sqlite.core.NativeDB._exec_utf8(Native Method) at org.sqlite.core.NativeDB._exec(NativeDB.java:94) at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:109) at launcher.objects.Session.saveCookies(Session.java:129) at launcher.objects.Session.save(Session.java:119) at launcher.objects.Session.setBDA(Session.java:65) at launcher.objects.Session.setBDA(Session.java:37) at launcher.CaptchaWorkaroundForm$PerformTwoFactor.run(CaptchaWorkaroundForm.java:161) org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is locked) at org.sqlite.core.DB.newSQLException(DB.java:941) at org.sqlite.core.DB.newSQLException(DB.java:953) at org.sqlite.core.DB.throwex(DB.java:918) at org.sqlite.core.NativeDB._exec_utf8(Native Method) at org.sqlite.core.NativeDB._exec(NativeDB.java:94) at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:109) at launcher.objects.Session.clearSession(Session.java:210) at launcher.managers.AuthenticationManager.doLogin(AuthenticationManager.java:89) at launcher.CaptchaWorkaroundForm$PerformTwoFactor.run(CaptchaWorkaroundForm.java:162) 400 {"errorCode":"errors.com.epicgames.accountportal.captcha_invalid","message":"Incorrect response. Please refresh the page."}

@Erlandys
Copy link
Owner

Erlandys commented Mar 4, 2020

@Swawm
Try this:

  1. go to unreal engine page, logout, open login form
  2. then open launcher
  3. try to login through launcher until you get request for BDA
  4. then open network tab in browser
  5. perform full login (if you have two factor auth or etc) until you reach whatever page after login to make it successful
  6. take that BDA and userbrowser from request in network tab
  7. put them into launcher
  8. try to login

P.s. check, theres new commit about 10-15minutes ago.
P.p.s. After filling the data and getting into the loop, try to close the application fully and open it again, it may help.

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

3 participants