Support Request: Intermittent API Failure (Error 500) and Need for Retry Logic in Image Generation Flow

rodion6

Member
Your Workflow URL
https://connect.pabbly.com/workflow/mapping/IjU3NjYwNTY1MDYzZTA0M2M1MjZiNTUzNDUxM2Ei_pc
Your Task History ID
IjU3NjUwNTZiMDYzZjA0MzU1MjZmNTUzZDUxM2E1MTY1NTQzNzBmMzQi_pc
Consent to Access & Modify
I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
¡Por supuesto! Aquí tienes el texto de soporte redactado en inglés, incluyendo todas las secciones clave para un soporte eficaz en el foro de Pabbly Connect:




Support Request: Intermittent API Failure (Error 500) and Need for Retry Logic in Image Generation Flow​



Hello Pabbly Connect community and support team,

I am experiencing a critical and recurring issue in a workflow that generates image assets via an external API (Qubico/flux1-dev) and then uses those assets to render a final video in JSON2Video.


1. Problem Description and Consequences​


The failure occurs intermittently in the API Call step for image generation. When this happens, the task is marked as failed, and the log indicates an Internal Server Error (Status Code 500).

The core problem: My flow requires the successful creation of 10 images. If just one image fails, the final video rendering process in JSON2Video is blocked or interrupted because the asset is missing. This results in the loss of the entire task and the budget spent on the 9 images that were successfully generated.

The specific error JSON is as follows:

JSON

"status": "failed",
"error": {
"message": "internal server error\nstatus code: 500\nfailed to do request",
"code": 10000
}


2. Request for Assistance (Retry Logic)​

I need to implement retry logic within Pabbly Connect to isolate and handle this specific API Status Code 500 error, preventing the total loss of the task.
I appreciate your guidance on how to build this layer of resilience into my automation.

Thank you,
 

Soumya Tripathi

Member
Staff member
Hello @rodion6
Could you please share the API documentation of the application that you have added in the "API (Pabbly): Execute API Request"? As we checked, you are getting the error:

"code": "400"
"message": "invalid request"

Please also share the screenshot and specify the exact step where you encountered the API Status Code 500 error.

1759987719788.png
 
Top