PaperMC / Waterfall

BungeeCord fork that aims to improve performance and stability.
https://papermc.io
MIT License
741 stars 302 forks source link

[BUG] Could not decode packet #830

Open Kauul opened 1 year ago

Kauul commented 1 year ago

Latest build makes impossible to join some of my network spigot servers 1.19 seems fine tho

[00:13:09 WARN]: [/31.35.223.120:53851|Kauul] <-> DownstreamBridge <-> [srv-117] - could not decode packet! io.netty.handler.codec.DecoderException: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 4 path $

Spigot logs : [00:05:55 INFO]: Kauul[/31.35.223.120:39941] logged in with entity id 23 at ([world]-268.5, 4.0, -653.5) [00:05:55 INFO]: Kauul lost connection: Internal Exception: java.io.IOException: Error while write(...): Broken pipe [00:05:55 INFO]: Kauul left the game.

electronicboy commented 1 year ago

all I can see is that sometning apparently sent bad json in a packet, you can run the server with -Dwaterfall.packet-decode-logging=true to maybe get more info, but, not much for me to go off here, general reproduce without plugins, etc

Kauul commented 1 year ago

it is most likely caused by one off our plugins i will stay on 1.19 for the moment i'll run the command you provided tomorrow

thanks

On Sat, Nov 4, 2023 at 1:22 AM Shane Freeder @.***> wrote:

all I can see is that sometning apparently sent bad json in a packet, you can run the server with -Dwaterfall.packet-decode-logging=true to maybe get more info, but, not much for me to go off here, general reproduce without plugins, etc

— Reply to this email directly, view it on GitHub https://github.com/PaperMC/Waterfall/issues/830#issuecomment-1793264703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUNLZCRAFCV3ZFZNZLSC2KLYCWDEBAVCNFSM6AAAAAA65EGSIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGI3DINZQGM . You are receiving this because you authored the thread.Message ID: @.***>

Packsolite commented 11 months ago

Hi, we're facing the same issue. Seems like it's triggered when sending empty/blank messages from a server:

io.netty.handler.codec.DecoderException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Not a JSON Object: [" "]

// Edit Might be linked to https://github.com/ViaVersion/ViaVersion/issues/3552

Sckaletz commented 11 months ago

We have the same issue when players try to join our servers with 1.20.3. https://paste.gg/p/anonymous/8f54662e04084e1cbf7a83725d3e3a0e