erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.69k stars 283 forks source link

progress method is not called for Imagine #282

Open TiPEX360 opened 1 month ago

TiPEX360 commented 1 month ago

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

const mjClient = new Midjourney({ ServerId: process.env.MJ_SERVER_ID, ChannelId: process.env.MJ_CHANNEL_ID, SalaiToken: process.env.MJ_SALAI_TOKEN ?? "", Ws: true })

await mjClient.init()

await mjClient.Imagine("Example prompt", (uri, progress) => { console.log("progress called") console.log(uri, progress) })

Describe the bug

Describe the bug A clear and concise description of what the bug is.

The progress callback function passed to Imagine is never called. No log messages appear with the above example.

Expected behavior A clear and concise description of what you expected to happen.

Progress function should be called. uri and progress strings logged to the console using the example code given.

Screenshots If applicable, add screenshots to help explain your problem.

error log

🎊 ws ready!!! Hi: null