builder-247 / node-autotip

Commandline-based autotip client for Hypixel using mineflayer
MIT License
20 stars 6 forks source link

TypeError: Cannot read property 'value' of undefined #22

Closed Dueel-Dev closed 2 years ago

Dueel-Dev commented 3 years ago

Every time i run it after a while it gives this error

C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\minecraft-protocol\src\transforms\framing.js:67 } else { throw e } ^

TypeError: Cannot read property 'value' of undefined at getHoverData (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\index.js:33:34) at Bot.onMessage (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\index.js:104:17) at Bot.emit (events.js:315:20) at Client. (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\mineflayer\lib\plugins\chat.js:69:9) at Client.emit (events.js:315:20) at FullPacketParser. (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\minecraft-protocol\src\client.js:87:12) at FullPacketParser.emit (events.js:315:20) at addChunk (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:298:12) at readableAddChunk (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:280:11) at FullPacketParser.Readable.push (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:241:10)

builder-247 commented 3 years ago

Are you running the latest version?

Dueel-Dev commented 3 years ago

Are you running the latest version?

Yes and i tried a clean install

builder-247 commented 3 years ago

Can you send your debug.log file?

Dueel-Dev commented 3 years ago

debug.log

Dueel-Dev commented 3 years ago

For some reason when I change my language in Hypixel to Pirate it stops crashing for me

builder-247 commented 3 years ago

For some reason when I change my language in Hypixel to Pirate it stops crashing for me

What language were you using before?

Dueel-Dev commented 3 years ago

For some reason when I change my language in Hypixel to Pirate it stops crashing for me

What language were you using before?

English

builder-247 commented 3 years ago

Very interesting. I haven't been able to reproduce this issue.

Dueel-Dev commented 3 years ago

It might have something to do with people on my Friends list but I don't know really

I tried g toggling but that didn't work so I assumed so

Sweatily commented 2 years ago

Having the same issue

Log - debug.log

C:\Users\crush\Desktop\node-autotip-master\node_modules\minecraft-protocol\src\transforms\framing.js:67 } else { throw e } ^

TypeError: Cannot read properties of undefined (reading 'value') at getHoverData (C:\Users\crush\Desktop\node-autotip-master\index.js:34:34) at EventEmitter.onMessage (C:\Users\crush\Desktop\node-autotip-master\index.js:106:17) at EventEmitter.emit (node:events:526:28) at Client. (C:\Users\crush\Desktop\node-autotip-master\node_modules\mineflayer\lib\plugins\chat.js:118:9) at Client.emit (node:events:526:28) at FullPacketParser. (C:\Users\crush\Desktop\node-autotip-master\node_modules\minecraft-protocol\src\client.js:91:12) at FullPacketParser.emit (node:events:526:28) at addChunk (C:\Users\crush\Desktop\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:298:12) at readableAddChunk (C:\Users\crush\Desktop\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:280:11) at FullPacketParser.Readable.push (C:\Users\crush\Desktop\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:241:10)

C:\Users\crush\Desktop\node-autotip-master>/ '/' is not recognized as an internal or external command, operable program or batch file.

Dueel-Dev commented 2 years ago

Hey there I made a small fix that if you would like to merge you can. It just adds a language option so it can change to user preference and in my case fix the problem I had. If you want to check it out I made a pull request. #34