• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Best practice for grace failures

Dear Pabbly Support,

I have a Pabbly workflow where I am parsing a complex email to extract data and send it to an API.

The API determines if the email can be parsed or not and returns a 400 for malformed data if it's not.

Pabbly fails ungracefully on that and sends an email notifying an error when it's actually the expected behaviour.

Is there any way around that or do I need to change the HTTP response code of the CRM (I built the API).

Thanks,
Mattia
 
P

Pabblymember11

Guest
Hey @ZeldOcarina

Kindly share the name of the workflow in which you are using the API by Pabbly action step along with the API documentation of the application which you are trying to implement.
 
The workflow name is "Aletti Emails", the documentation is not available as it's a private API.
Basically it tries to create a new lead if all required data are present or it rejects the lead if any are missing with a 400 API response.
 
P

Pabblymember11

Guest
Hey @ZeldOcarina

If the API sends the status code above 400 the system will consider it an error/failed task, you need to change the API's status code from the application level to less than 400 with any code to justify the HTTP code as success.
 
P

Pabblymember11

Guest
Hey @ZeldOcarina

Correction: If the API sends the status code above 400 the system will consider it an error/failed task, you need to change the API's status code from the application level to less than 400 with any code to justify the HTTP code as success.

You mean above 400 will error out, right?
I guess I'll switch to a 204 then!
Yes, you need to change the status code from the API.
 
Top