Automic Workload Automation

Β View Only
  • 1.  Error Handling while connecting to REST API

    Posted Apr 15, 2021 03:40 AM
    Hello community,

    Please suggest me how to deal with error handling if REST API did not connect from Automic. Basically I have to send notification to admin if REST API did not connect. If any body came across this situation please help me out.



    ------------------------------
    Regards,

    Eshwar
    ------------------------------


  • 2.  RE: Error Handling while connecting to REST API

    Posted Apr 16, 2021 01:12 AM
    What do you mean by "REST API did not connect from Automic"? This could mean just anything. Are you talking about the REST API of the Automation Engine itself, a webservice object, an OS job that does REST calls? Please elaborate on your exact use-case.

    ------------------------------
    ☎️ Swisscom Automation Engineer & πŸ§™ PE Membership Creator & πŸ€– Nerd open for small assignments

    🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟
    Automic Kurse, Tutorials, Tools und mehr auf:
    https://membership.philippelmer.com/
    Zwei Wochen kostenlos testen!
    🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟
    ------------------------------



  • 3.  RE: Error Handling while connecting to REST API

    Posted Apr 16, 2021 05:21 AM
    Hi Joel, Thanks for your reply.

    We are connecting to external REST API using webservice connection object and running webservice job to get the user details using GET method. If in case the connection may fail due to network issue or REST API did not respond for request then how we will send notification  to admin?

    Please find the error message for your reference.



    ------------------------------
    Regards,

    Eshwar
    ------------------------------



  • 4.  RE: Error Handling while connecting to REST API

    Posted Apr 17, 2021 12:18 PM
    Hi Joel,

    We resolved the issue.

    Thanks


    ------------------------------
    Regards,

    Eshwar
    ------------------------------