x-minecraft-launcher icon indicating copy to clipboard operation
x-minecraft-launcher copied to clipboard

Microsoft Account Failing to Authorize

Open sunlightFrequency opened this issue 2 years ago • 2 comments

Attempting to add an account via Microsoft continuously fails, throws this error under the login page:

{"exception":{"type":"userAcquireMinecraftTokenFailed","error":"ClientAuthError: network_error: Network request failed. Please check network trace to determine root cause. | Fetch client threw: Error: HTTP status code 400 | Attempted to reach: https://login.microsoftonline.com/consumers/oauth2/v2.0/token"},"name":"UserException","message":"","stack":"UserException\n at C:\Users\[my name]\Documents\Minecraft Shit\X Minecraft Launcher\resources\app.asar\dist\index.js:200:19304\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async Proxy.loginMicrosoft (C:\Users\[my name]\Documents\Minecraft Shit\X Minecraft Launcher\resources\app.asar\dist\index.js:200:19174)\n at async Proxy.login (C:\Users\[my name]\Documents\Minecraft Shit\X Minecraft Launcher\resources\app.asar\dist\index.js:200:22344)\n at async ServiceManager.startServiceCall (C:\Users\[my name]\Documents\Minecraft Shit\X Minecraft Launcher\resources\app.asar\dist\index.js:201:15813)\n at async node:electron/js2c/browser_init:197:563","serviceName":"UserService","serviceMethod":"login"}

To Reproduce I honestly don't know if this is reproducible behavior, but the way it happened for me was this:

  1. Click on "Add Account" with a fresh install - I used the zip file
  2. Choose "Microsoft" as auth service
  3. Enter email address and click "login"
  4. Log in to your Microsoft account on the webpage that pops up
  5. Go to the XMCL authentication page, it says "Succeed!"
  6. Go back to XMCL app
  7. Login page closes out, account isn't added.

Expected behavior Adding my account to let me log in and play the game through this launcher.

Screenshots image

Environment

  • OS: Windows 10
  • Windows Version: 21H2
  • XMCL Version: v0.30.1

Additional Context Generated report file: report.zip

sunlightFrequency avatar Jul 18 '22 17:07 sunlightFrequency

QQ截图20220722113855 Me too.

Xiaohuang257 avatar Jul 22 '22 03:07 Xiaohuang257

Me too

XIAYM-gh avatar Aug 20 '22 15:08 XIAYM-gh

You need to refresh several times. If you can't, restart the program and log in and refresh again.

CDmking avatar Oct 19 '22 00:10 CDmking