Skip to content

Client getting kicked with DecoderException when sending a DialogListDialog #3871

@Andre601

Description

@Andre601

Bungeecord version

git:BungeeCord-Bootstrap:1.21-R0.4-SNAPSHOT:e62fc6c:1995

Server version

No response

Client version

1.21.8

Bungeecord plugins

AdvancedServerList 5.7.0-b2
cmd_find git:cmd_find:1.21-R0.4-SNAPSHOT:e62fc6c:1995
cmd_server git:cmd_server:1.21-R0.4-SNAPSHOT:e62fc6c:1995
cmd_alert git:cmd_alert:1.21-R0.4-SNAPSHOT:e62fc6c:1995
cmd_send git:cmd_send:1.21-R0.4-SNAPSHOT:e62fc6c:1995
cmd_list git:cmd_list:1.21-R0.4-SNAPSHOT:e62fc6c:1995

The bug

When trying to send a DialogListDialog to a player through a plugin is the client getting kicked for io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:show_dialog'

The full exception from the client report: https://paste.helpch.at/joqezexave.bash

In the SpigotMC Discord was it suggested that this is probably an issue with certain values not being properly escaped.

A few notes:

  • I use own classes to create and show Dialogs in a platform-agnostic way to allow multi-platform support with a shared codebase.
    The methods used to create dialogs and show the dialog list utilize the Bungee API's Dialog system. You can see the code for Dialogs here and the code used for DialogListDialogs here
  • I have a utility class called BungeeComponentParser, which I use to parse MiniMessage formatting into Adventure Components, followed by converting them into BungeeCord BaseComponents using the Adventure-library's platform support and the ComponentBuilder of BungeeCord.
    The full code of this class: https://paste.helpch.at/zupuyehufo.java

Log output (links)

No response

Checking

  • I am using BungeeCord and not a fork. Issues with forks should not be reported here.
  • I think this is not an issue with a bungeecord plugin.
  • I have not read these checkboxes and therefore I just ticked them all.
  • This is not a question or plugin creation help request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions