oelin / midjourney-reborn

A Discord bot for all your Midjourney needs 🔥.
MIT License
97 stars 15 forks source link

Error when using command #14

Closed impressiveaustin closed 1 year ago

impressiveaustin commented 1 year ago

file:///home/austin/Desktop/midjourney-reborn/node_modules/node-replicate/index.js:21 return fetch(https://replicate.com/api/models${prediction.version.model.absolute_url}/versions/${prediction.version_id}/predictions/${prediction.uuid}) ^

TypeError: Cannot read properties of undefined (reading 'model') at Object.get (file:///home/austin/Desktop/midjourney-reborn/node_modules/node-replicate/index.js:21:70) at Object.run (file:///home/austin/Desktop/midjourney-reborn/node_modules/node-replicate/index.js:14:28) at async default (file:///home/austin/Desktop/midjourney-reborn/node_modules/midjourney-client/index.js:6:2)

impressiveaustin commented 1 year ago

Any update on this?

sandarutharuneth commented 1 year ago

This happens sometime when you overused the command. Give it a break and try again in in few minutes.

impressiveaustin commented 1 year ago

It has been happening for 4 days or something, any way to fix?

sandarutharuneth commented 1 year ago

Currently I got nothing as a fix since it's the API

oelin commented 1 year ago

Replicate.com provide little information on usage limits for their public API. I may create a branch which uses replicate-javascript (their official paid API). This version would no longer be free, however may be slightly more reliable.