PrismarineJS / PrismarineJS/node-minecraft-protocol
protocolsupport incompatibility
Open
Nobody has claimed this yet.
non-vanilla
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 290
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 7
Description
Versions
- mineflayer: 2.24.0
- server: paper
- node: 12.18.2
Bot cannot connect to server with protocolsupport, the plugin that lets multiple versions join.
PartialReadError: Deserialization error for play.toClient : Read error for undefined : Missing characters in string, found size is 40761 expected size was 3325017
at new ExtendableError (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\utils.js:63:13)
at new PartialReadError (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\utils.js:70:5)
at Object.string (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:46:15)
at eval (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:1704:71)
at eval (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:1781:11)
at Object.packet_declare_recipes (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:1786:9)
at eval (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:1933:70)
at packet (eval at compile (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:245:12), <anonymous>:1938:9)
at CompiledProtodef.read (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:64:12)
at e.message (C:\Users\Soldr\WebstormProjects\soldrbot3.0\node_modules\.pnpm\protodef@1.8.2\node_modules\protodef\src\compiler.js:99:49) {
partialReadError: true,
field: 'play.toClient'
}
Expected behavior
Bot connects to server fine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the connection with mineflayer 2.24.0 on Node 12.18.2 against Paper with ProtocolSupport, then inspect the packet parsing path named in the stack trace, especially play.toClient and protodef. Done means the bot connects successfully without the reported PartialReadError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100