com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server

Mojang JIRA | Marcono1234 | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I don't know if this really a bug, maybe it can be prevented. When the "Multiplayer session service" server are offline or you have no internet connection and you try changing the selected profile in your launcher the game freezes for about 10 seconds (which even let the profile selection for every programm). Here is the output: {code} [21:14:35 INFO]: Refreshing auth... [21:14:35 INFO]: Logging in with access token [21:15:11 ERROR]: Exception whilst logging into profile com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:69) ~[launcher.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logInWithToken(YggdrasilUserAuthentication.java:124) ~[launcher.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logIn(YggdrasilUserAuthentication.java:53) ~[launcher.jar:?] at net.minecraft.launcher.Launcher.ensureLoggedIn(Launcher.java:203) [launcher.jar:?] at net.minecraft.launcher.ui.bottombar.ProfileSelectionPanel.itemStateChanged(ProfileSelectionPanel.java:127) [launcher.jar:?] at javax.swing.JComboBox.fireItemStateChanged(Unknown Source) [?:1.6.0_45] at javax.swing.JComboBox.selectedItemChanged(Unknown Source) [?:1.6.0_45] at javax.swing.JComboBox.contentsChanged(Unknown Source) [?:1.6.0_45] at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source) [?:1.6.0_45] at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source) [?:1.6.0_45] at javax.swing.JComboBox.setSelectedItem(Unknown Source) [?:1.6.0_45] at javax.swing.JComboBox.setSelectedIndex(Unknown Source) [?:1.6.0_45] at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source) [?:1.6.0_45] at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) [?:1.6.0_45] at java.awt.Component.processMouseEvent(Unknown Source) [?:1.6.0_45] at javax.swing.JComponent.processMouseEvent(Unknown Source) [?:1.6.0_45] at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source) [?:1.6.0_45] at java.awt.Component.processEvent(Unknown Source) [?:1.6.0_45] at java.awt.Container.processEvent(Unknown Source) [?:1.6.0_45] at java.awt.Component.dispatchEventImpl(Unknown Source) [?:1.6.0_45] at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.6.0_45] at java.awt.Component.dispatchEvent(Unknown Source) [?:1.6.0_45] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [?:1.6.0_45] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [?:1.6.0_45] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [?:1.6.0_45] at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.6.0_45] at java.awt.Window.dispatchEventImpl(Unknown Source) [?:1.6.0_45] at java.awt.Component.dispatchEvent(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue.access$400(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue$2.run(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue$2.run(Unknown Source) [?:1.6.0_45] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_45] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) [?:1.6.0_45] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue$3.run(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue$3.run(Unknown Source) [?:1.6.0_45] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_45] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) [?:1.6.0_45] at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.6.0_45] at java.awt.EventDispatchThread.run(Unknown Source) [?:1.6.0_45] Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.6.0_45] at java.net.SocketInputStream.read(Unknown Source) ~[?:1.6.0_45] at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source) ~[?:1.6] at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) ~[?:1.6] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.6] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) ~[?:1.6] at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) ~[?:1.6] at java.io.BufferedInputStream.fill(Unknown Source) ~[?:1.6.0_45] at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.6.0_45] at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.6.0_45] at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) ~[?:1.6.0_45] at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) ~[?:1.6.0_45] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.6.0_45] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) ~[?:1.6] at com.mojang.authlib.HttpAuthenticationService.performPostRequest(HttpAuthenticationService.java:83) ~[launcher.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:52) ~[launcher.jar:?] ... 45 more {code} _Maybe something could be added that checks if the server are online or if you have an internet connection_ _Also had a similar problem when trying to play an old map with the old skin format in a Minecraft Version with the new skin format in offline mode (it was "Diversity" by theqmagnet), the game nearly crashed as the console got so extreme spammed by the game_

    Mojang JIRA | 3 years ago | Marcono1234
    com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server
  2. 0

    Getting info to generate build notes gets SocketTimeoutException

    Eclipse Bugzilla | 7 years ago | emoffatt
    java.net.SocketTimeoutException: Read timed out
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    HttpsURLConnection stalling out when getInputStream() is called

    Stack Overflow | 7 years ago | geraldalewis
    java.net.SocketTimeoutException: Read timed out
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)[?:1.6.0_45]
    2. java.net.SocketInputStream.read(Unknown Source)[?:1.6.0_45]
    2 frames
  3. Java JSSE
    AppInputStream.read
    1. com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)[?:1.6]
    2. com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)[?:1.6]
    3. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)[?:1.6]
    4. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)[?:1.6]
    5. com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)[?:1.6]
    5 frames
  4. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. java.io.BufferedInputStream.fill(Unknown Source)[?:1.6.0_45]
    2. java.io.BufferedInputStream.read1(Unknown Source)[?:1.6.0_45]
    3. java.io.BufferedInputStream.read(Unknown Source)[?:1.6.0_45]
    4. sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)[?:1.6.0_45]
    5. sun.net.www.http.HttpClient.parseHTTP(Unknown Source)[?:1.6.0_45]
    6. sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)[?:1.6.0_45]
    7. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)[?:1.6]
    7 frames
  5. com.mojang.authlib
    YggdrasilUserAuthentication.logIn
    1. com.mojang.authlib.HttpAuthenticationService.performPostRequest(HttpAuthenticationService.java:83)[launcher.jar:?]
    2. com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:52)[launcher.jar:?]
    3. com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logInWithToken(YggdrasilUserAuthentication.java:124)[launcher.jar:?]
    4. com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logIn(YggdrasilUserAuthentication.java:53)[launcher.jar:?]
    4 frames
  6. net.minecraft.launcher
    ProfileSelectionPanel.itemStateChanged
    1. net.minecraft.launcher.Launcher.ensureLoggedIn(Launcher.java:203)[launcher.jar:?]
    2. net.minecraft.launcher.ui.bottombar.ProfileSelectionPanel.itemStateChanged(ProfileSelectionPanel.java:127)[launcher.jar:?]
    2 frames
  7. Java RT
    EventDispatchThread.run
    1. javax.swing.JComboBox.fireItemStateChanged(Unknown Source)[?:1.6.0_45]
    2. javax.swing.JComboBox.selectedItemChanged(Unknown Source)[?:1.6.0_45]
    3. javax.swing.JComboBox.contentsChanged(Unknown Source)[?:1.6.0_45]
    4. javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)[?:1.6.0_45]
    5. javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source)[?:1.6.0_45]
    6. javax.swing.JComboBox.setSelectedItem(Unknown Source)[?:1.6.0_45]
    7. javax.swing.JComboBox.setSelectedIndex(Unknown Source)[?:1.6.0_45]
    8. javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)[?:1.6.0_45]
    9. java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)[?:1.6.0_45]
    10. java.awt.Component.processMouseEvent(Unknown Source)[?:1.6.0_45]
    11. javax.swing.JComponent.processMouseEvent(Unknown Source)[?:1.6.0_45]
    12. javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)[?:1.6.0_45]
    13. java.awt.Component.processEvent(Unknown Source)[?:1.6.0_45]
    14. java.awt.Container.processEvent(Unknown Source)[?:1.6.0_45]
    15. java.awt.Component.dispatchEventImpl(Unknown Source)[?:1.6.0_45]
    16. java.awt.Container.dispatchEventImpl(Unknown Source)[?:1.6.0_45]
    17. java.awt.Component.dispatchEvent(Unknown Source)[?:1.6.0_45]
    18. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)[?:1.6.0_45]
    19. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)[?:1.6.0_45]
    20. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)[?:1.6.0_45]
    21. java.awt.Container.dispatchEventImpl(Unknown Source)[?:1.6.0_45]
    22. java.awt.Window.dispatchEventImpl(Unknown Source)[?:1.6.0_45]
    23. java.awt.Component.dispatchEvent(Unknown Source)[?:1.6.0_45]
    24. java.awt.EventQueue.dispatchEventImpl(Unknown Source)[?:1.6.0_45]
    25. java.awt.EventQueue.access$400(Unknown Source)[?:1.6.0_45]
    26. java.awt.EventQueue$2.run(Unknown Source)[?:1.6.0_45]
    27. java.awt.EventQueue$2.run(Unknown Source)[?:1.6.0_45]
    28. java.security.AccessController.doPrivileged(Native Method)[?:1.6.0_45]
    29. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)[?:1.6.0_45]
    30. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)[?:1.6.0_45]
    31. java.awt.EventQueue$3.run(Unknown Source)[?:1.6.0_45]
    32. java.awt.EventQueue$3.run(Unknown Source)[?:1.6.0_45]
    33. java.security.AccessController.doPrivileged(Native Method)[?:1.6.0_45]
    34. java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)[?:1.6.0_45]
    35. java.awt.EventQueue.dispatchEvent(Unknown Source)[?:1.6.0_45]
    36. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)[?:1.6.0_45]
    37. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)[?:1.6.0_45]
    38. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)[?:1.6.0_45]
    39. java.awt.EventDispatchThread.pumpEvents(Unknown Source)[?:1.6.0_45]
    40. java.awt.EventDispatchThread.pumpEvents(Unknown Source)[?:1.6.0_45]
    41. java.awt.EventDispatchThread.run(Unknown Source)[?:1.6.0_45]
    41 frames