midjourney-ui icon indicating copy to clipboard operation
midjourney-ui copied to clipboard

vercel ws doesn't work.

Open zcpua opened this issue 1 year ago • 2 comments

netlify ws work. vercel ws doesn't work. u can disable ws or try netlify.

zcpua avatar Jun 04 '23 23:06 zcpua

how to disable ws, I use the following with Ws set to false, but it still reports 502

  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,
  });

allentofight avatar Jun 05 '23 02:06 allentofight

https://github.com/erictik/midjourney-api/blob/main/example/imagine.ts

zcpua avatar Jun 05 '23 04:06 zcpua