bedrock-protocol icon indicating copy to clipboard operation
bedrock-protocol copied to clipboard

Chat message writing error

Open InnateAlpaca opened this issue 1 year ago • 3 comments

Hello! I'm getting an error while trying to queue text packets. (I used a regular client.queue('text', packet), which always worked before the update. There are also problems with offline-mode bots, as well as with the relay.

While decoding ea5c3b9530bef45d6cca6c63c8ffb0ef7d218e351dd7023d8492469825f2718e22c6bcb269769b7c9195bb1b969710e46c4f970 Client failed to read packet TypeError [ERR_INVALID_ARG_TYPE]: SizeOf error for undefined : The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received undefined

InnateAlpaca avatar Aug 13 '22 20:08 InnateAlpaca

Can you provide the code that can reproduce this issue ?

extremeheat avatar Aug 13 '22 20:08 extremeheat

... client.queue('text', { type: 'chat', needs_translation: false, source_name: 'username', message: 'hello', xuid: '' }) or idk... I tried several changes to the packet to see if that could solve the error.

InnateAlpaca avatar Aug 14 '22 15:08 InnateAlpaca

You are missing fields in that. The fields for a chat message are listed in the README.

extremeheat avatar Aug 14 '22 16:08 extremeheat

I'm sry, have you tried to queue a message, and managed to without any problem (using all correct parameters)? I have tried all possible combinations of parameters and always got that error... yea in that one I'm missing an undefinied parameter ok, but I also tried it with it.

InnateAlpaca avatar Aug 15 '22 10:08 InnateAlpaca

Why the close? Was this a problem on your side?

extremeheat avatar Aug 15 '22 21:08 extremeheat

yes

InnateAlpaca avatar Aug 20 '22 06:08 InnateAlpaca