I've intermittently been hitting an issue that behaves like a script hitting an exception, but I'm not seeing any exceptions. As a simplified example, let's say I have a script like this:
If I call that function enough times, I eventually see "At stage 1" in the logs without a matching "At stage 2" and NO EXCEPTION.
The real function where this happens is much bigger and does lots of other work, but I have narrowed down the point of disappearance specifically to a nanoTime call. It goes in and it never returns.
I can see that the script disappears from the gateway's "Running Scripts" status page.
Yeah, I'm aware of the script exception downgrade. I believe it resets the next exception to full when the script file is changed or if the whole gateway is restarted. I was able to recreate this on my devstation after a restart and there was nothing in the logs.
I'll add a try/except with the dual clause as an experiment, but I'm not expecting much.
Nope. I was wrong, You were right. Even more dumb, the exception was in the logger statement just after the nanoTime. My version had some variables it was trying to print to give more debug hints, and one of those had a typo.