Skip to main content
Jul 1, 2021 9:40 AM UTC
Question

Script timeout error

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 

11 replies

Jul 1, 2021 9:49 AM UTC

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.

Jul 1, 2021 10:02 AM UTC

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.

 

 

Jul 1, 2021 10:07 AM UTC

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.