Skip to main content
14-Alexandrite
July 1, 2021
Question

Script timeout error

  • July 1, 2021
  • 1 reply
  • 3421 views

A service is unable to execute completely because the script time configured is less.

 

Written code in catch block of the service.But code in catch block is not executing.

 

Let me know How do I capture Script timeout error in catch block 

1 reply

17-Peridot
July 1, 2021

You can use script log statements(like logger.warn("message") )in the catch block code, then check the log file to know where is the service performed.

14-Alexandrite
July 1, 2021

Have performed what you suggested.

 

But No luck,It is not showing log statements written in Catch block in Script log.

 

I see Script timeout error log for this service in Application Log.

 

But unable to capture it in catch block.

 

 

17-Peridot
July 1, 2021

Which statement do you use? How about using logger.error("message")?  Can you be sure the service has been executed in that step?

I suggest you can set more statements in different code areas.