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

progress method is not called for Imagine

Open TiPEX360 opened this issue 1 year ago • 3 comments
trafficstars

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

TiPEX360 avatar Aug 11 '24 00:08 TiPEX360