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

Suggestions for Improvements and Error Handling in Image Generation

Open studiowizjo opened this issue 1 year ago • 0 comments

Great package! Everything works perfectly, and it's incredibly helpful. However, I’ve noticed a few aspects that could potentially be improved. Unfortunately, I’m not sure how to tackle these issues myself:

  1. Intermittent Errors on Discord:
    Occasionally, the generated images on Discord encounter an error. Please find the attached screenshot for reference:

image

Is there a way to detect such issues programmatically and respond accordingly in the code?

  1. Cloudflare Captcha Blocking:
    Sometimes the generation process is blocked, and a Cloudflare captcha modal appears on Discord, requiring manual resolution. Unfortunately, I don’t have a screenshot at the moment, but I can provide one next time it occurs. While this might be challenging to address, is there any potential solution to mitigate this?

  2. Image Generation via Website API:
    Recently, images can also be generated through the website: https://www.midjourney.com/imagine. By analyzing requests, I noticed that they are sent to their internal API. However, attempting to reproduce these requests, e.g., via Postman or code, results in a page with the text "Just a moment...". I suspect this might be due to Cloudflare, but I’m unsure how to bypass it.

Let me know if further details or examples are needed. Thank you for your work on this package!

studiowizjo avatar Dec 04 '24 18:12 studiowizjo