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

client.Describe No result returned

Open lys623 opened this issue 2 years ago • 11 comments

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

const  imgUrl=`https://cdn.discordapp.com/attachments/1008571049039896576/1119473369813884958/manuelcorazzari_dirty_hands_holding_dirt_from_the_ground_sun_li_98bfb5e5-8c4f-4cb3-879a-bc229108e505.png`
const msg = await client.Describe(imgUrl);
console.log({ msg });

Describe the bug

image

No result returned

error log

No result returned

lys623 avatar Jun 17 '23 14:06 lys623

ws:true

zcpua avatar Jun 18 '23 02:06 zcpua

https://github.com/erictik/midjourney-client/blob/main/example/describe.ts

zcpua avatar Jun 18 '23 07:06 zcpua

I have the same problem with describe

The Code

image

The output:

image

clementepestelli avatar Jun 18 '23 08:06 clementepestelli

https://github.com/erictik/midjourney-client/blob/main/example/describe.ts#L18

zcpua avatar Jun 18 '23 08:06 zcpua

Yeah, I saw that client.Connect() but it gave me this error:

TypeError: client.Connect is not a function
    at main (/*******/index.js:12:18)
    at Object.<anonymous> (/*******/index.js:24:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Maybe I'm forgetting something important?

I installed your midjourney module from npm

clementepestelli avatar Jun 18 '23 08:06 clementepestelli

npm install midjourney

zcpua avatar Jun 18 '23 08:06 zcpua

Ok, ny default npm installed v 2.7.79. I forced the package.json to 3.0.80 and it works! Thank you!

clementepestelli avatar Jun 18 '23 08:06 clementepestelli

Ok, ny default npm installed v 2.7.79. I forced the package.json to 3.0.80 and it works! Thank you!

image

Still no. What's wrong, "midjourney": "^3.0.81"

image

It appears that the message event did not fire after the prompter ended

Is it the account number? What needs to be configured

lys623 avatar Jun 18 '23 16:06 lys623

help @clementepestelli

lys623 avatar Jun 19 '23 09:06 lys623

image

The task was successfully created, but the returned result was not broadcast

image

Is it the account number? What needs to be configured

lys623 avatar Jun 19 '23 14:06 lys623

有毒,仓库代码也不行,其他setting API,reset api都可以,就这个Describe 不行,救命

image

image

lys623 avatar Jun 19 '23 14:06 lys623

I have the same issue with the example. No msg is returned from Describe().

lx-0 avatar Jun 25 '23 16:06 lx-0

Find a solution where the bot gets a response when it is sent privately instead of in the server

lys623 avatar Jul 04 '23 04:07 lys623

20230704-120726

zcpua avatar Jul 04 '23 04:07 zcpua

Doesn't work for me either, using the latest version. Node 20, [email protected], no matter if I enable websockets or not - it submits the describe request and I can find the response in the discord channel, but MJ API never catches the response. Maybe because it's a public channel?

pyronaur avatar Jul 04 '23 11:07 pyronaur

A-ha. I created my own server, added MJ bot there and now it works. For some reason you can't describe on a public server.

pyronaur avatar Jul 04 '23 11:07 pyronaur