erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.65k stars 271 forks source link

while running imagine-ws.ts, getting the error with command #215

Open Sikandarkhan opened 11 months ago

Sikandarkhan commented 11 months ago

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

I am trying to run the sample app - npx tsx example/imagine-ws.ts getting the error with command.ts

Describe the bug

Describe the bug I am trying to run npx tsx example/imagine-ws.ts, getting the error TypeError: Cannot read properties of undefined (reading 'version')

Screenshot 2023-08-15 at 2 44 11 PM

error log

TypeError: Cannot read properties of undefined (reading 'version') at MidjourneyApi.commandData (/localpath/src/command.ts:161:24) at MidjourneyApi.imaginePayload (/localpath/src/command.ts:87:18) at MidjourneyApi.ImagineApi (/localpath/src/midjourne.api.ts:81:21) at Midjourney.Imagine (/localpath/src/midjourney.ts:73:24) at main (/localpath/imagine-ws.ts:22:19)