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

Sending unknown packet error when joining a server with a resource pack twice in quick succession

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 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
    • None
    • Plausible
    • Networking, Resource Packs
    • Normal
    • Platform

      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:

      1. Set up a Minecraft server
      2. Point the resource-pack line in server.properties to a resource pack
      3. Start the server
      4. 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.

            Unassigned Unassigned
            mattp_12 mattp_12
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: