Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271325

Server attempts to send disconnect packets in the status phase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.6, 24w20a, 24w21b, 1.21, 1.21.1
    • None
    • Community Consensus
    • Networking
    • Low
    • Platform

      Clients invalidly handling their connection during the status phase will cause a SocketException to be thrown, which is handled by the ClientConnection#exceptionCaught method. This results in a clientbound/minecraft:disconnect packet with the message 'Internal Exception: (stringified error)'to be sent to the client. However, this packet doesn't exist in the status phase, so the server logs the following exception:

      Error sending packet clientbound/minecraft:disconnect
      io.netty.handler.codec.EncoderException: Sending unknown packet 'clientbound/minecraft:disconnect'
      

      I would expect this exception to not be thrown as sending a disconnect packet with text during the status phase makes no sense, and the true error is with the client rather than the server.

        1. latest.log
          105 kB
          Adorable Cat
        2. log-2024-05-01.txt
          678 kB
          Adorable Cat

            Unassigned Unassigned
            haykam haykam
            Votes:
            26 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              CHK: