Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError [ERR_ASSERTION]: varint is too big #3472

Open
1 task done
watercatlxh opened this issue Oct 3, 2024 · 2 comments
Open
1 task done

AssertionError [ERR_ASSERTION]: varint is too big #3472

watercatlxh opened this issue Oct 3, 2024 · 2 comments

Comments

@watercatlxh
Copy link

  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: latest
  • server: spigot/paper 1.18.1
  • node: 20.17.0

Detailed description of a problem

I attempted to create an automated reward collection bot, but after the program has been running for a while, it encounters the following error and is unable to continue running.

What did you try yet?

Did you try any method from the API?
yes
Did you try any example? Any error from those?
yes

Error

AssertionError [ERR_ASSERTION]: varint is too big
    at Object.readVarInt [as varint] (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/datatypes/utils.js:80:12)
    at Object.string (eval at compile (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:258:12), <anonymous>:89:61)
    at Object.packet_success (eval at compile (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:258:12), <anonymous>:568:65)
    at eval (eval at compile (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:258:12), <anonymous>:590:54)
    at packet (eval at compile (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:258:12), <anonymous>:595:9)
    at CompiledProtodef.read (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:70:12)
    at e.message (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:111:49)
    at tryCatch (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/utils.js:50:16)
    at CompiledProtodef.parsePacketBuffer (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/compiler.js:111:29)
    at FullPacketParser.parsePacketBuffer (/usr/local/lib/python3.11/dist-packages/javascript/js/node_modules/protodef/src/serializer.js:68:23) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==',
  field: 'login.toClient'
}

Then

Timed out get 6 createBot <Thread(Thread-2202 (loop), started daemon 140287095662272)>
Timed out accessing 'quit'

and

Timed out get 6 createBot <Thread(Thread-2202 (loop), started daemon 140287095662272)>
Timed out accessing 'createBot'

Expected behavior

No such error occurred; it continued to function normally.

Additional context

If you need my code, I will provide it.
Thank you very much for your assistance in resolving my issue.

@watercatlxh watercatlxh added possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Oct 3, 2024
@extremeheat
Copy link
Member

This is likely a problem on the server. Can you reproduce on another server?

@extremeheat extremeheat added waiting info from op and removed possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Nov 25, 2024
@watercatlxh
Copy link
Author

I think so, that server is using custom packets, so is there a way to implement an action that ignores some packets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants