Auth Me

Auth Me

6M Downloads

Unable to acquire Microsoft auth code

BuggyAl opened this issue ยท 2 comments

commented

Expected behavior

Upon clicking the Microsoft login, I am taken to the Microsoft login screen

Observed/actual behavior

image

[01/01/2025 12:00:05 PM] [pool-28-thread-1/INFO] Acquiring Microsoft auth code...
[01/01/2025 12:00:05 PM] 	at java.base/sun.nio.ch.Net.bind0(Native Method)
[01/01/2025 12:00:05 PM] 	at java.base/sun.nio.ch.Net.bind(Net.java:565)
[01/01/2025 12:00:05 PM] 	at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:344)
[01/01/2025 12:00:05 PM] 	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:301)
[01/01/2025 12:00:05 PM] 	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:89)
[01/01/2025 12:00:05 PM] 	at jdk.httpserver/sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:145)
[01/01/2025 12:00:05 PM] 	at jdk.httpserver/sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
[01/01/2025 12:00:05 PM] 	at jdk.httpserver/sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
[01/01/2025 12:00:05 PM] 	at jdk.httpserver/com.sun.net.httpserver.HttpServer.create(HttpServer.java:152)
[01/01/2025 12:00:05 PM] 	at knot//me.axieum.mcmod.authme.api.util.MicrosoftUtils.lambda$acquireMSAuthCode$6(MicrosoftUtils.java:178)
[01/01/2025 12:00:05 PM] 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1812)
[01/01/2025 12:00:05 PM] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[01/01/2025 12:00:05 PM] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[01/01/2025 12:00:05 PM] 	at java.base/java.lang.Thread.run(Thread.java:1575)
[01/01/2025 12:00:05 PM] [pool-28-thread-1/ERROR] Unable to acquire Microsoft auth code!

Steps/models to reproduce

It just happens randomly, not entirely sure how to reproduce.

Version

authme-8.0.0+1.21.4

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

I'm using Essential which I know does some account stuff, and I have a second account added through Essential

commented

Thanks for reporting. By default, when you log in with Microsoft it will start listening on http://localhost:25585/ for the log in.

The error log suggests it cannot bind to port 25585. You can try changing the port that Auth Me uses to something not in use (via mod menu).

commented

Ah, that makes sense... I was running a dev sever on that port ๐Ÿ˜