Skip to content

glowstone: panic Unrecognized modinfo type in server ping response: "VANILLA" in {"modList":[],"type":"VANILLA"}', protocol/src/protocol/mod.rs:1246:21 #478

@iceiix

Description

@iceiix

Connecting to a Glowstone server, snapshot version glowstone-2021.1.0-20210116.193733-27.jar, shows "Channel dropped" in the server list and panics upon connect, with the same message:

thread 'main' panicked at 'Unrecognized modinfo type in server ping response: "VANILLA" in {"modList":[],"type":"VANILLA"}', protocol/src/protocol/mod.rs:1246:21

protocol/src/protocol/mod.rs

        if let Some(modinfo) = val.get("modinfo") {
            if let Some(modinfo_type) = modinfo.get("type") {
                if modinfo_type == "FML" {
 ...
                } else {
                    panic!(
                        "Unrecognized modinfo type in server ping response: {} in {}",
                        modinfo_type, modinfo
                    );

val is:

Object({"description": Object({"text": String("A Glowstone server")}), "modinfo": Object({"modList": Array([]), "type": String("VANILLA")}), "players": Object({"max": Number(20), "online": Number(0), "sample": Array([])}), "version": Object({"name": String("1.12.2"), "protocol": Number(340)})})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions