Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MidJourney error "Sorry! Could not complete the job!" not handled. Imagine stuck indefinitely #244

Open
BastienPenalba opened this issue Nov 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BastienPenalba
Copy link

BastienPenalba commented Nov 2, 2023

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

Hello,

I use this package only for Image and Upscale. Most of the time, things a running smoothly, but I sometimes get a MidJourney error like the following:
Capture d’écran 2023-10-30 à 14 43 38

The thing is that in this case the await Imagine(...) never returns anything and seems to stay stuck, not throwing any error:

async function imagineTask(prompt) {
    return await client.Imagine(
        prompt,
        (uri, progress) => {
            console.log("Imagine", uri, "progress", progress);
        }
    );
}

I have the MaxWait setting set at 150, but from what I saw in the code is that it's only used to wait for the message. In my case the message seems to appear so I don't have any timeout error either. I though of handling the timeout myself but I'm affraid the Imagine process will keep running in the background and pile up some errors in the longterm since I don't have any way to cancel the Imagine promise.

Describe the bug

Describe the bug
Imagine doesn't throw an error in case of MidJourney failure, neither a timeout

Expected behavior
I'd expect client.Imagine(...) to throw an error if MidJourney failed on discord, or at least have some sort of timeout that would cancel the Imagine promise so I can't get a feedback on this error from Discord and handle it properly.

Screenshots

error log

No log since I don't get any error thrown

@BastienPenalba BastienPenalba added the bug Something isn't working label Nov 2, 2023
@ManInTheWind
Copy link

same issue encountered, this libarary not handle well at error happed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants