SKCraft / Launcher

🚀 Distribute your Minecraft modpacks with a custom launcher
Other
624 stars 437 forks source link

getting a 403 and not knowing why #525

Open strich3 opened 10 months ago

strich3 commented 10 months ago

To report this error, please provide:

java.io.IOException: Did not get expected response code, got 403 for https://api.minecraftservices.com/authentication/login_with_xbox at com.skcraft.launcher.util.HttpRequest.expectResponseCode(HttpRequest.java:211) at com.skcraft.launcher.auth.microsoft.MinecraftServicesAuthorizer.authorizeWithMinecraft(MinecraftServicesAuthorizer.java:24) at com.skcraft.launcher.auth.MicrosoftLoginService.performLogin(MicrosoftLoginService.java:99) at com.skcraft.launcher.auth.MicrosoftLoginService.login(MicrosoftLoginService.java:58) at com.skcraft.launcher.dialog.AccountSelectDialog.lambda$attemptMicrosoftLogin$7(AccountSelectDialog.java:153) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)

D3nnis3n commented 4 months ago

Similar here when trying to login with MS account:

java.lang.IllegalArgumentException: No input stream available at com.skcraft.launcher.util.HttpRequest.returnContent(HttpRequest.java:308) at com.skcraft.launcher.auth.microsoft.XboxTokenAuthorizer.lambda$authorizeWithXbox$1(XboxTokenAuthorizer.java:41) at com.skcraft.launcher.util.HttpRequest.expectResponseCodeOr(HttpRequest.java:230) at com.skcraft.launcher.auth.microsoft.XboxTokenAuthorizer.authorizeWithXbox(XboxTokenAuthorizer.java:40) at com.skcraft.launcher.auth.MicrosoftLoginService.performLogin(MicrosoftLoginService.java:98) at com.skcraft.launcher.auth.MicrosoftLoginService.login(MicrosoftLoginService.java:58) at com.skcraft.launcher.dialog.AccountSelectDialog.lambda$attemptMicrosoftLogin$7(AccountSelectDialog.java:153) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)