Skip to content

progress method is not called for Imagine #282

@TiPEX360

Description

@TiPEX360

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions