PrismarineJS / PrismarineJS/node-minecraft-protocol
Having some issues running a higher level script, errors pointing to minecraft-protocol
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 290
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 7
Description
Hey, having some error codes hitting me, wondering if you can read and tell me whats going on with it? Error codes attached below
I am on minecraft 1.18.1 and using urFafe/Afk/bot
It is supposed to log in and take me to a set x, y, z. but seems to get these error codes when i am in water (may just be coincidental)
First code:
at checkStatus (C:\Users\harri\afk_bot\node_modules\minecraft-protocol\src\client\microsoftAuth.js:125:11)
at runMicrotasks ()
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
This pops up a few times until it eventually says it’s tried too many times.
Okay and here is the second error code which has popped up:
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
I attempted to have a look at this code to zero succEss. Have been told it’s likely a minecraft-protocol error or mineflayer.
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 reading src/client/microsoftAuth.js at lines 81 and 125, then trace the ECONNRESET stacks through the mentioned readable-stream and protocol connection paths. No test or expected code change is identified; the issue would need a reproducible cause and a defined fix or confirmed external cause before it is done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication, networking
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100