JadeMin / aterbot

✨ A Minecraft bot for keep your Aternos server alive 24/7!
GNU General Public License v3.0
137 stars 638 forks source link

EPIPE / ECONNRESET / Invalid move player packet received #10

Closed Qaveru closed 1 year ago

Qaveru commented 1 year ago

I had the bot working for all night, but when I joined server the bot disconnected and started trying to reconnect but was disconnected again and again giving me 2 errors in the console:

Error: write ECONNRESET at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:917:11) at Socket._write (node:net:929:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Writable.write (node:internal/streams/writable:337:10) at Framer.ondata (/home/runner/aternos-afkbot/node_modules/readable-stream/lib/internal/streams/readable.js:662:22) at Framer.emit (node:events:513:28) { errno: -104, code: 'ECONNRESET', syscall: 'write' } AFKBot got an error: Error: write ECONNRESET Trying to reconnect in 15 seconds...

AFKBot logged in Sanitar

jump with sprinting Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' }

back with sprinting Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:917:11) at Socket._write (node:net:929:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Writable.write (node:internal/streams/writable:337:10) at Framer.ondata (/home/runner/aternos-afkbot/node_modules/readable-stream/lib/internal/streams/readable.js:662:22) at Framer.emit (node:events:513:28) { errno: -32, code: 'EPIPE', syscall: 'write' }

JadeMin commented 1 year ago

Aternos may banned your bot. unban if it's in the ban list.

Qaveru commented 1 year ago

I changed nickname of the not and i worked, but it wasnt ban, more like smth else with "invalid move player packet received" error

JadeMin commented 1 year ago

Q: How do i fix invalid move player packet received?

Technically that's because your bot is in invalid pos or moving to invalid pos. So you have to wipe the bot's playerdata in your server.

  1. Go to your Aternos server management page and click Files in the left section.
  2. Delete world/playerdata/<UUID>.dat and <the same>.dat_old file that points the bot username. It will lost the bot data (such as inventory and last pos) in your server!

If the problem happens still, lock your bot in some place.

Qaveru commented 1 year ago

Yeah Ik its not your codes fault. I Just closed my New bot in bedrock roomand it actually worked