erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.67k stars 278 forks source link

Error: ImagineApi failed with status 400 #51

Open liuyongchun opened 1 year ago

liuyongchun commented 1 year ago
Error: ImagineApi failed with status 400
    at Midjourney.Imagine (d:\work\project\test\midjourney-api\src\midjourney.ts:46:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at main (d:\work\project\test\midjourney-api\example\imagine-ws.ts:20:15)
zcpua commented 1 year ago

check env

bzm121 commented 1 year ago

@liuyongchun 之前参数都可以正常访问,昨天后,就报400错误。这个问题你解决了吗?

artemptushkin commented 1 year ago

any feedback? same issue

lys623 commented 1 year ago

+1

DaveJohno commented 1 year ago

i changed the server and channel id's to my own DM server. you can get the id's by enabling dev mode in discord settings and right clicking on the channel/server name. this worked for me, not sure if it was right 😂

artemptushkin commented 1 year ago

Indeed, it can be taken from the URL in web.

Example when you click on a channel in a server:

https://discord.com/channels/1082500871478329374/1094892992281718894
https://discord.com/channels/$SERVER_ID/$CHANNEL_ID

I will push a documentation update