erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.65k stars 271 forks source link

Imagine -> progress not working #188

Open Zbara opened 1 year ago

Zbara commented 1 year ago

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

        const msg = client.Imagine(req.body.prompt, (uri, progress) => {
               console.log({
                image: uri,
                progress: progress,
            });
        });

Describe the bug

Today I updated the library, and the image generation progress stopped working, there are no errors in the console.

Version 4.3.2

error log

There are no errors.

zcpua commented 1 year ago

new client's code

zcpua commented 1 year ago

Version 4.x Ws default is true u can add

 await client.init()

or set

Ws: false