betacraft-launcher icon indicating copy to clipboard operation
betacraft-launcher copied to clipboard

Launcher won't start after changing Microsoft credentials

Open Mondei1 opened this issue 3 years ago • 1 comments

I had opened the launcher for the very first time and logged in using my Microsoft account, no big deal. After changing my Microsoft credentials online (so on Microsoft side, not inside the launcher) and restarting the launcher nothing happend. The process was idle in the background. So I directly started the launcher in my terminal:

[2021-10-14 20:37:34] BetaCraft Launcher JE v1.09_14 loading...
[2021-10-14 20:37:34] Java version: Oracle Corporation, Java(TM) SE Runtime Environment, 1.8.0_301-b09
[2021-10-14 20:37:34] Portable: false
[2021-10-14 20:37:34] EXE: true
[2021-10-14 20:37:34] Prerelease: false
[2021-10-14 20:37:34] Nightly: false
[2021-10-14 20:37:34] Loaded in: 224129100 ns
[2021-10-14 20:37:35] Download started from: http://betacraft.pl/lang/1.09_11/English.txt
java.io.IOException: Server returned HTTP response code: 400 for URL: https://login.live.com/oauth20_token.srf
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at pl.betacraft.auth.RequestUtil.performRawPOSTRequest(RequestUtil.java:59)
        at pl.betacraft.auth.RequestUtil.performPOSTRequest(RequestUtil.java:15)
        at pl.betacraft.auth.jsons.microsoft.MicrosoftRefreshRequest.perform(MicrosoftRefreshRequest.java:25)
        at pl.betacraft.auth.MicrosoftAuth.authenticate(MicrosoftAuth.java:66)
        at org.betacraft.launcher.StartThread.run(StartThread.java:24)
Exception in thread "Thread-1" java.lang.NullPointerException
        at java.net.URLEncoder.encode(Unknown Source)
        at pl.betacraft.auth.jsons.microsoft.XBLProperties.<init>(XBLProperties.java:14)
        at pl.betacraft.auth.jsons.microsoft.XBLAuthRequest.<init>(XBLAuthRequest.java:19)
        at pl.betacraft.auth.MicrosoftAuth.authenticate(MicrosoftAuth.java:76)
        at org.betacraft.launcher.StartThread.run(StartThread.java:24)

Instead of crashing becasuse Microsoft wont allow access using the stored token anymore, the client should just delete the account and prompt the user to enter the login credentials again.

Deleting the accounts.json in C:\Users\XXX\AppData\Roaming.betacraft\launcher\ fixes the issue.

  • Platform: Windows 10 64-Bit
  • Launcher: v1.09_14

Mondei1 avatar Oct 14 '21 18:10 Mondei1

Update betacraft.

jadenquinn avatar Dec 31 '21 06:12 jadenquinn