Facility Control

 View Only
  • 1.  setTimeout

    Posted 09-04-2018 20:10
    Is there anyway in DashBoard to set a timeout on a function? I have a function in my api that is doing a ogscript.post command and getting info back from a AJA Ki Pro Device. The problem I have is if the network is not connected or the IP address is incorrect, the dashboard will hang for a good 30 seconds and become unresponsive. is there anyway to force the function to timeout after a certain amount of time?


  • 2.  RE: setTimeout

    Posted 09-04-2018 20:27
    There is no configuration available for the HTTP Timeout in DashBoard.
    You should be using ogscript.asyncPost to avoid doing long-running operations in the UI Thread.

    James
    #DashBoard


  • 3.  RE: setTimeout

    Posted 09-04-2018 20:29
    A-ha. That's the missing link on my end.

    Thanks!
    #DashBoard