erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.68k stars 280 forks source link

Passing a reference image fails to resolve #114

Open DanielHindi opened 1 year ago

DanielHindi commented 1 year ago

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

When passing a prompt that has a url reference to another image. The message makes it to the discord server and midjourney triggers. However, the call back for progress never triggers as well as the final resolve never triggers.

Describe the bug

Problem: const msg = await client.Imagine(prompt, (uri) => { console.log("loading", uri); // never triggers }); //never resolves

Reproduce: prompt = "Red hamster smoking a cigaret, https://media.discordapp.net/attachments/1108515696385720410/1118385339732590682/DanielH_A_giant_hamster_monster._Friendly_in_a_business_suit_si_d4be1836-a4e1-41a8-b1d7-99eebc521220.png?width=1878&height=1878 "

error log

writeOut
onWarning emit
emit
doEmitWarning processTicksAndRejections Async call from TickObject

DanielHindi commented 1 year ago

Side note: setup a donation page. would be happy to contribute.

zcpua commented 1 year ago

https://github.com/erictik/midjourney-api/commit/3904a41bd123cb8f1c445020868fdb235261be4c resolved.