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

EPIPE / ECONNRESET / Invalid move player packet received #10

Closed
Qaveru opened this issue Feb 22, 2023 · 4 comments
Closed

EPIPE / ECONNRESET / Invalid move player packet received #10

Qaveru opened this issue Feb 22, 2023 · 4 comments
Labels
bug Something isn't working won't fix This will not be worked on

Comments

@Qaveru
Copy link

Qaveru commented Feb 22, 2023

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
Copy link
Owner

JadeMin commented Feb 22, 2023

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

@JadeMin JadeMin added the invalid Unknown label Feb 22, 2023
@Qaveru
Copy link
Author

Qaveru commented Feb 22, 2023

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
Copy link
Owner

JadeMin commented Feb 22, 2023

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
Copy link
Author

Qaveru commented Feb 22, 2023

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

@JadeMin JadeMin closed this as completed Feb 22, 2023
@JadeMin JadeMin added the won't fix This will not be worked on label Feb 22, 2023
@JadeMin JadeMin removed the won't fix This will not be worked on label Apr 8, 2023
@JadeMin JadeMin pinned this issue Apr 8, 2023
@JadeMin JadeMin changed the title Error: write EPIPE and Error: read ECONNRESET EPIPE / ECONNRESET / Invalid move player packet received Apr 14, 2023
@JadeMin JadeMin added bug Something isn't working won't fix This will not be worked on and removed invalid Unknown labels Jun 23, 2023
@JadeMin JadeMin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants