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

Imagine Api sometimes can't receive the message from discord websocket.

Open rictt opened this issue 1 year ago • 6 comments

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

const client = await new Midjourney({ ServerId: config.ServerId, ChannelId: config.ChannelId, SalaiToken: config.SalaiToken, Debug: true, Ws: true, });

await client.init(); await client.Connect();

client.Imagine('Imagine card artwork, card illustration, the ferocious werewolf, spray effects, black and white style, yoji shinkawa style, ink render, clean details, 16k --ar 9:16');

Describe the bug

Describe the bug In my server logs, just output the prompt log, and have nothing about ws message like "has message xxx", and i found the prompt result is display in the discord channel.

In ordinary times, the ws message can display in my server logs.

One important thing that when i restart my midjourney server, server can normal running.

I am not sure if I have made myself clear. I hope you can understand. Thank you.

Expected behavior Expect the ws can keep connect with discord ws

Screenshots image

image

error log

no ws message output

rictt avatar Jun 20 '23 01:06 rictt

image

rictt avatar Jun 20 '23 05:06 rictt

I also experience this from time to time on Upscale. The image will be created but the promise doesn't resolve.

jakowenko avatar Jun 20 '23 05:06 jakowenko

Since yesterday I've been consistently experiencing this issue, can anyone provide any suggestions to resolve it ?

yohandarosa avatar Jun 24 '23 07:06 yohandarosa

How can I solve this problem that I also encounter

chen735623058 avatar Jul 07 '23 02:07 chen735623058

I also encountered this problem. Basically, after the server runs for a day, when I initiate a request to generate an image, the request task can be triggered normally in Discord, but I cannot get the callback result of the task. Has anyone solved this problem? Or found the reason for this problem?

MuYiBo avatar Jul 08 '23 14:07 MuYiBo

I have the same problem. It happens sometimes randomly 🤔

hoantran-it avatar Jul 24 '24 13:07 hoantran-it