Execution Time Exceeded Errors


(Kevin) #1

One of my SmartApps is logging the exception “Execution time exceeded 20 app execution seconds” every time it runs.

I think it started on Friday, but I was made aware of it yesterday morning.

The error is happening because the command “device.events(max:50)” is taking between 80ms and 1,800ms to execute.

That means that most SmartApps that periodically check the events of more than 25 devices are probably experiencing the same timeout errors.


(Jeff) #2

Do you have Hue?


(Kevin) #3

No, but this is a known problem that SmartThings is looking into.


(Kevin) #4

Just wanted to point out that this problem keeps getting worse every day.

It’s now taking over 4 seconds to retrieve 50 events from a device.