Mojira Archive
MC-271325

Server attempts to send disconnect packets in the status phase

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.

Unresolved

haykam

2024-05-01, 06:55 PM

2025-01-08, 06:04 PM

37

23

Community Consensus

Low

Platform

Networking

1.20.6 - 1.21.41.20.6, 24w20a, 24w21b, 1.21, 1.21.1, 1.21.2 Pre-Release 3, 1.21.4

-