urFate / Afk-Bot

Funcional minecraft AFK bot for servers. Anti-AFK, Auto-Auth, Microsoft/Offline accounts support.
MIT License
113 stars 460 forks source link

Getting some code issues while running after like 3-5 mins #6

Closed lachyharris closed 2 years ago

lachyharris commented 2 years ago

Hey, having some error codes hitting me, wondering if you can read and tell me whats going on with it? Error code attached below

at checkStatus (C:\Users\harri\afk_bot\node_modules\minecraft-protocol\src\client\microsoftAuth.js:125:11)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.authenticatePassword (C:\Users\harri\afk_bot\node_modules\minecraft-protocol\src\client\microsoftAuth.js:81:34)

[ERROR] Too Many Requests

does this few times until it basically gives up

lachyharris commented 2 years ago

Also got this error just now:

Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:209:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read' } [ERROR] read ECONNRESET

and

Error: write ECONNRESET at afterWriteDispatched (internal/stream_base_commons.js:156:25) at writeGeneric (internal/stream_base_commons.js:147:3) at Socket._writeGeneric (net.js:785:11) at Socket._write (net.js:797:8) at writeOrBuffer (internal/streams/writable.js:358:12) at Socket.Writable.write (internal/streams/writable.js:303:10) at Framer.ondata (C:\Users\harri\afk_bot\node_modules\readable-stream\lib_stream_readable.js:681:20) at Framer.emit (events.js:315:20) at addChunk (C:\Users\harri\afk_bot\node_modules\readable-stream\lib_stream_readable.js:298:12) at readableAddChunk (C:\Users\harri\afk_bot\node_modules\readable-stream\lib_stream_readable.js:280:11) { errno: -4077, code: 'ECONNRESET', syscall: 'write' } [ERROR] write ECONNRESET

lachyharris commented 2 years ago

Could be coincidental but seem to be in water both times errors have hit\

urFate commented 2 years ago

I think its minecraft-protocol or mineflayer issue. Afk-Bot just uses this libs and don't working with servers on low level. I recommend reopen this issue on the repositories listed above.