midjourney-api
midjourney-api copied to clipboard
Imagine Api sometimes can't receive the message from discord websocket.
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
error log
no ws message output
I also experience this from time to time on Upscale. The image will be created but the promise doesn't resolve.
Since yesterday I've been consistently experiencing this issue, can anyone provide any suggestions to resolve it ?
How can I solve this problem that I also encounter
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?
I have the same problem. It happens sometimes randomly 🤔