Skip to content

PartialReadError on 1.21.8 (Server_Protector/CobbleGuard) #3756

@DereC4

Description

@DereC4
  • [Yes] The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.33.0
  • server: Paper 1.21.8
  • node: 20.19.19

Detailed description of a problem

When connecting to Minecraft servers, everything was going fine but I hit a 1.21.8 Paper server and a stream of PartialReadError: Unexpected buffer end while reading VarInt is thrown immediately after the bot successfully connects. The stack trace consistently points to an issue with parsing packet_entity_metadata.

Despite the log errors I was still able to join

Your current code

  this.currentBot = mineflayer.createBot({
      host: server.ip,
      port: server.port,
      username: `[email protected]`,
      auth: 'microsoft',
      // version: '1.21.8', // Auto-detect version
      viewDistance: 1,
      hideErrors: false,
  });

Expected behavior

Connection to succeed without error.

Additional context

Logs are here: https://pastebin.com/BCWFTW6i

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stage1just created by someone new to the project, we don't know yet if it deserves an implementation / a fpossible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions