Minecraft-Console-Client
Minecraft-Console-Client copied to clipboard
[BUG] Unhandled Exception: SocketException
Prerequisites
- [X] I made sure I am running the latest development build
- [X] I tried to look for similar issues before opening a new one
- [X] I have set
debugmessages=true
in config to diagnose my issue - [X] I have redacted session tokens and passwords before attaching screenshots
Minecraft Version
1.18.2
Console Client Version
(not latest sorry)
Expected Behavior
The client should catch exception so it does not crash.
Actual Behavior
The client crashes when the Wi-Fi is unstable.
Steps to Reproduce the bug
Not sure.
Attach screenshot here (If applicable)
No response
Anythings that could help diagnosing the bug
This is a bug from #1921 but with login.microsoftonline.com instead
logs
[MCC] Connection has been lost.
[MCC] [AutoRelog] Waiting 10 seconds before reconnecting...
Restarting Minecraft Console Client...
Cached session is invalid or expired.
Unhandled Exception:
System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'login.microsoftonline.com'
at System.Net.Sockets.TcpClient..ctor (System.String hostname, System.Int32 port) [0x00085] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
at MinecraftClient.Proxy.ProxyHandler.newTcpClient (System.String host, System.Int32 port, System.Boolean login) [0x000f4] in <b2e887d387e84817ab9b4c527f3b4c9c>:0
at MinecraftClient.Protocol.ProxiedWebRequest+<>c__DisplayClass24_0.<Send>b__0 () [0x00016] in <b2e887d387e84817ab9b4c527f3b4c9c>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'login.microsoftonline.com'
at System.Net.Sockets.TcpClient..ctor (System.String hostname, System.Int32 port) [0x00085] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
at MinecraftClient.Proxy.ProxyHandler.newTcpClient (System.String host, System.Int32 port, System.Boolean login) [0x000f4] in <b2e887d387e84817ab9b4c527f3b4c9c>:0
at MinecraftClient.Protocol.ProxiedWebRequest+<>c__DisplayClass24_0.<Send>b__0 () [0x00016] in <b2e887d387e84817ab9b4c527f3b4c9c>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
Device
Laptop
Operating System
Linux
Server Address (If applicable)
No response