API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Continue to next policy if backend doesn't respond in time in invoke policy

    Posted 07/08/24 06:46 PM

    I wonder if there is any possibility to skip and not throw any error even if backend is not available in APIC V10. Right now, the invoke policy is going to default catch block if the backend is unavailable. I've tried Stop On Error too.



    ------------------------------
    Tanuja Ede
    ------------------------------


  • 2.  RE: Continue to next policy if backend doesn't respond in time in invoke policy

    Posted 07/09/24 02:12 AM
    Edited by Tanuja Ede 07/09/24 02:20 AM

    @Steve Linn - Could you help me out here, please?  Is that possible or am I doing something wrong?





  • 3.  RE: Continue to next policy if backend doesn't respond in time in invoke policy

    Posted 07/09/24 02:35 AM
    Hi Tanuja,
    I can think of two options as of now.
    1. Create custom error handler block to provide proper response as required.
    2. Use url-open module and handle the errors in the script for a required response.






  • 4.  RE: Continue to next policy if backend doesn't respond in time in invoke policy

    Posted 07/09/24 08:14 AM

    Hi Tanika, 

    Stop on error is how this is handled. Ensure you specify ConnectionError which is thrown when the backend is not available. Also specify OperationError which is thrown if the backend responds with a non 200 HTTP status code, and if you're invoke is sending a SOAP request, a fault will return a SOAPError. 
    Regards,

    Steve Linn



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------