PrismarineJS / flying-squid

Create Minecraft servers with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/flying-squid/
MIT License
547 stars 100 forks source link

Chunk size is 183 but only 1 was read #637

Closed uwuv3 closed 1 year ago

uwuv3 commented 1 year ago

Full error

Chunk size is 183 but only 1 was read ; partial packet : {"name":25}; buffer :19b4017b227472616e736c617465223a22646973636f6e6e6563742e67656e65726963526561736f6e222c2277697468223a5b22496e7465726e616c20457863657074696f6e3a20696f2e6e657474792e68616e646c65722e636f6465632e4465636f646572457863657074696f6e3a2054686520726563656976656420737472696e67206c656e677468206973206c6f6e676572207468616e206d6178696d756d20616c6c6f77656420283235203e20313629225d7d

Bot code;


      const id = cryptoRandomString({ length: 3 });
      const b = await createBot({
        host: ip,
        username: config.botName /*uptrical*/ + "_" + id,
      });

      b.on("kicked", () => {
          b.end();
          return interaction.editReply({
            content: "",
            embeds: [
              errorEmbed("Sunucuya giremiyorum").setFields([
                {
                  name: "Olası sebepler",
                  value:
                    "- Sunucu kapalı\n- Sunucu whitelistte\n- Sunucu maximum oyunucu taşıyor\n- Sunucu orjinal hesap istiyor",
                },
              ]),
            ],
            ephemeral: true,
          });
      });
      b.on("login", () => {
        return interaction.editReply({
          content:
            "# Başarılı bir şekilde girdi\nEğer atılırsa/sunucu kapatılırsa tekrar form göndermek zorundasın\n> Eğer bunu istemiyorsan premium alabilirsin.",
          ephemeral: true,
          components: [
            new ActionRowBuilder().addComponents(
              new ButtonBuilder()
                .setCustomId("infoPre")
                .setLabel("Premium bilgi")
                .setStyle(ButtonStyle.Primary)
            ),
          ],
        });
      });
      b.on("error", (error) => {
          b.end();
          return interaction.editReply({
            content: "",
            embeds: [
              errorEmbed("Sunucuya giremiyorum").setFields([
                {
                  name: "Olası sebepler",
                  value:
                    "- Sunucu kapalı\n- Sunucu whitelistte\n- Sunucu maximum oyunucu taşıyor\n- Sunucu orjinal hesap istiyor",
                },
                {
                  name: "Hata",
                  value: `${error}`,
                },
              ]),
            ],
            components: [ads.compoment],
            ephemeral: true,
          });
      });
PondWader commented 1 year ago

Is this related to Mineflayer or flying squid? You opened this in the flying squid repository.

uwuv3 commented 1 year ago

Is this related to Mineflayer or flying squid? You opened this in the flying squid repository.

Sorry