Generating blank image multiple times
Logs: Task ID '43383bd6-cc5f-4f03-8bf8-f03d6a96da9c' Attempt 1/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 3/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 4/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 5/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 6/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 7/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 8/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 9/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 10/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 11/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 12/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 13/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 14/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 15/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 16/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 17/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 18/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 19/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... Attempt 20/20: Image not ready, status is 'Pending'. Retrying in 5 seconds... All attempts exhausted for task_id 43383bd6-cc5f-4f03-8bf8-f03d6a96da9c. Returning blank image. Also given the prompt is simple "Generate image based on reference image"
The issue is that the BFL API still returns "Pending" status even after 20 attempts. As a result, the system gives up and returns a blank image.
As a quick workaround, we can try increasing the max_attempts value inside base.py, in the get_result method:
def get_result(self, task_id, output_format="jpeg", max_attempts=20):
I will increase the max_attempts value in the next release.