Sending unknown packet error when joining a server with a resource pack twice in quick succession
If you join a server which downloads a resource pack twice in quick succession, this error is given:
Error sending packet serverbound/minecraft:resource_pack
io.netty.handler.codec.EncoderException: Sending unknown packet 'serverbound/minecraft:resource_pack'
Reproduce:
- Set up a Minecraft server
- Point the resource-pack line in server.properties to a resource pack
- Start the server
- Join the server, cancel the connection shortly after (making sure the resource pack starts downloading), and then rejoin
It may take a few tries, but eventually you will get a "Failed to connect to the server" screen, showing the error.
After quickly looking at the recording I attached, it appears to error when timing the rejoin where the second resource pack starts downloading right as the first one finishes downloading. This could be wrong though.
2024-04-16, 01:35 AM
2025-02-06, 02:18 AM
3
2
1.20.5 Pre-Release 2 - 25w06a
1.20.5 Pre-Release 2, 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 1, 1.20.5 Release Candidate 2, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21 Release Candidate 1, 1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2, 1.21.2 Pre-Release 3, 1.21.2 Release Candidate 1, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3, 24w45a, 24w46a, 1.21.4 Pre-Release 1, 1.21.4 Release Candidate 3, 1.21.4, 25w02a, 25w03a, 25w04a, 25w05a, 25w06a
-