erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.71k stars 286 forks source link

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

Open rictt opened 1 year ago

rictt commented 1 year ago

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 commented 1 year ago

image

jakowenko commented 1 year ago

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

yohandarosa commented 1 year ago

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

chen735623058 commented 1 year ago

How can I solve this problem that I also encounter

MuYiBo commented 1 year ago

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?

hoantran-it commented 3 months ago

I have the same problem. It happens sometimes randomly 🤔