MrKinau / FishingBot

1.8 - 1.21 Fishing bot for Minecraft
GNU General Public License v3.0
322 stars 68 forks source link

String is too long *more than 16 characters #169

Closed Izocel closed 2 years ago

Izocel commented 2 years ago

[2022-07-06 23:43:29] [SEVERE ] Login failed: {"translate":"disconnect.genericReason","with":["Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (27 > 16)"]}

using Bot2.7.19.jar (precompiled)

MrKinau commented 2 years ago

Most likely the bot falls back to offline mode authorization and uses the E-Mail as your username here. Check the log lines before to see what went wrong during the autorization proccess, if you have any troubles feel free to answer here or ask them on my Discord

Izocel commented 2 years ago

Seems to connect well:

[2022-07-06 23:58:54] [INFO ] Trying to authenticate with *@hotmail.com:**** (MICROSOFT)... [2022-07-06 23:58:56] [INFO ] Authentication successful! [2022-07-06 23:58:56] [INFO ] Username: triangle1232009@hotmail.com [2022-07-06 23:58:56] [INFO ] Pinging 24.230.192.246:25565 with protocol of MC-AUTOMATIC [2022-07-06 23:58:58] [INFO ] Received pong: Unknown, version: 1.19 (759), players online: 1 [2022-07-06 23:58:58] [INFO ] Module "HandshakeModule" enabled! [2022-07-06 23:58:58] [INFO ] Module "LoginModule" enabled! [2022-07-06 23:58:58] [INFO ] Module "ClientDefaultsModule" enabled! [2022-07-06 23:58:58] [INFO ] Module "FishingModule" enabled! [2022-07-06 23:58:58] [INFO ] Module "ChatProxyModule" enabled! [2022-07-06 23:58:58] [SEVERE ] Login failed: {"translate":"disconnect.genericReason","with":["Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (27 > 16)"]} [2022-07-06 23:58:58] [INFO ] Module "LoginModule" disabled! [2022-07-06 23:58:58] [INFO ] Module "ClientDefaultsModule" disabled! [2022-07-06 23:58:58] [INFO ] Module "FishingModule" disabled! [2022-07-06 23:58:58] [INFO ] Module "ChatProxyModule" disabled! [2022-07-06 23:58:58] [INFO ] FishingBot will reconnect in 5 seconds... [2022-07-06 23:59:03] [INFO ] Trying to authenticate using access token... [2022-07-06 23:59:03] [WARNING] The access token is irrecoverably. Using password authentication. [2022-07-06 23:59:03] [INFO ] Trying to authenticate with *@hotmail.com:**** (MICROSOFT)...

Izocel commented 2 years ago

Don't it support 1.19 ?

MrKinau commented 2 years ago

It supports 1.19, but this log looks quite sus, you did not changed the line saying Username: …, right? Normally there should be your username not your mail. Is it a normal Microsoft account with Minecraft: Java Edition or sth. special? Xbox Gamepass or sth?

Izocel commented 2 years ago

Its a normal microsoft account but did not by the game...

MrKinau commented 2 years ago

oh, ok, that makes sense. If you want to play offline mode (cracked), you can enter your username in the E-Mail field and leave the password field blank and untick Server » Online Mode

Izocel commented 2 years ago

Its online my friend host the server, so I understant that in this case i would need to buy the game

MrKinau commented 2 years ago

If the server disable online-mode (https://minecraft.fandom.com/wiki/Server.properties#online-mode) as-well, you can still join (this has nothing to do with single player or multiplayer, it's just for the authentication to happen offline or online)

Izocel commented 2 years ago

Well seems that online is "off" but still get

[2022-07-07 00:12:12] [SEVERE ] Login failed: {"translate":"disconnect.genericReason","with":["Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (27 > 16)"]}

MrKinau commented 2 years ago

Then you still have your E-Mail entered in the E-Mail field, but for offline mode the bot uses this field to set the desired username, so you have to set it to any valid username (max. 16 character, almost no special characters)

0xrushi commented 2 years ago

I had similar issue in mineflayer

changing auth to Microsoft and removing the password worked.

const bot = mineflayer.createBot({
  host: 'localhost', // server host
  port: 25565,
  version: "1.17.1",
  username: "noob@gmail.com", // microsoft email
  auth: "microsoft" // keep this value microsoft for microsoft account
  // password: "yourpasswored" // keep this commented for microsoft
})
Izocel commented 2 years ago

Well seems that i had to buy the game anway its cheep :P

Izocel commented 2 years ago

thanks guys great stuff btw ;)

Izocel commented 2 years ago

Yeah when offline mode username length is Critical you should put in in your readme ;) It works offline now ;)