Open arpitgoyall opened 1 year ago
+1
Bug Report for Examples,please
Example: https://github.com/erictik/midjourney-api/blob/main/example/variation-ws.ts
I tried your updated example above but again console.log("Upscale", Upscale);
this line never run because Upscale variable never assign anything due to await client.Upscale()
is entering into never resolving promise! while others have succesfully consoled the response like below
Variation {
id: '1132894372908765215',
flags: 0,
content: '**48 year old woman with auburn hair plays video games on a tablet in her bedroom and is a chemist. Engaged. Happy. Evening. Silver blue walls in room. In the style of anime. does not exceed 10 MB.** - Variations (Strong) by <@1112598694357913670> (fast)',
hash: '5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67',
progress: 'done',
uri: 'https://cdn.discordapp.com/attachments/1076377285332045884/1132894372652920932/secret_spyy_48_year_old_woman_with_auburn_hair_plays_video_game_5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67.png',
proxy_url: 'https://media.discordapp.net/attachments/1076377285332045884/1132894372652920932/secret_spyy_48_year_old_woman_with_auburn_hair_plays_video_game_5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67.png',
options: [
{
type: 2,
style: 2,
label: 'U1',
custom: 'MJ::JOB::upsample::1::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'U2',
custom: 'MJ::JOB::upsample::2::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'U3',
custom: 'MJ::JOB::upsample::3::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'U4',
custom: 'MJ::JOB::upsample::4::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: '🔄',
custom: 'MJ::JOB::reroll::0::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67::SOLO'
},
{
type: 2,
style: 2,
label: 'V1',
custom: 'MJ::JOB::variation::1::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'V2',
custom: 'MJ::JOB::variation::2::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'V3',
custom: 'MJ::JOB::variation::3::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
},
{
type: 2,
style: 2,
label: 'V4',
custom: 'MJ::JOB::variation::4::5dfe5d59-d7eb-4fa4-a5d2-6da5b9b72d67'
}
]
}
I also encountered the same problem, and I have tried to use the above demo, the same situation of waiting forever
the code that reproduces this issue or a replay of the bug
Describe the bug
Describe the bug when we try to upscale the variation image(the image came after v1. v2. v3, v4) using custom method does not return anything it goes into endless waiting time to get promise resolved but upscale API call is successful and image is upscaled. upscale of zoom out image has no problem it works fine I am wondered why it is happening only with variation image. It only happens when remix mode is on!
Expected behavior Custom method should return the response when variation image is upscaled!
To produce error 1) Turn on the remix mode 2) Imagine -> find variation -> upscale(which is not retuning anything)
That upscale variable will not be assigned anything cause last calling method is going to never ending promise state!
error log
Never ending promise state