erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.69k stars 283 forks source link

settings response is null #167

Closed allentofight closed 1 year ago

allentofight commented 1 year ago

the code that reproduces this issue or a replay of the bug

    const client = new Midjourney({
        ServerId: <string>process.env.SERVER_ID,
        ChannelId: <string>process.env.CHANNEL_ID,
        SalaiToken: <string>process.env.SALAI_TOKEN,
        Debug: true,
        Ws:false,
      });

      await client.Connect();
      const settingMsg = await client.Settings();
      console.log(settingMsg);
      if (!settingMsg) {
        return;
      }

            // //niji5
      const niji5 = settingMsg.options.filter((x) => {
        return x.label === "Niji version 5";
      })[0];
      console.log(niji5);
      const httpstatus = await client.MJApi.CustomApi({
        msgId: settingMsg.id,
        customId: niji5.custom,
        flags: settingMsg.flags,
      });

Describe the bug

I use the previous code to switch to Niji version 5 just as the example's example, but the settingMsg is null

error log

the settings in MJ pops up. but the settingMsg is null

zcpua commented 1 year ago

Ws:true

zcpua commented 1 year ago

Ws must be true