Closed jp1987 closed 6 years ago
That happens whenever the other side hangs up while you are interacting with the channel in ARI and can be handled by adding clean up logic in a ChannelDestroyed or StasisEnd event for that channel.
There's no easy way to figure out which action lead to the error above I'm afraid. If you want to know where it's originating from you'll have to add error handler callbacks where you call actions and add logging information to determine where the culprit is.
Right, will do. Thanks!
Hey, i get same err, you can describe more about solution.
Hey, i get same err, you can describe more about solution.
Your Help appreciated.
I have a node ari app that handles thousands of calls a day. About once a day, I see an unhandled rejection. I added the following code:
This is the output:
I suspect we are trying to execute an action on a channel that has already been hung up/destroyed. Because it only happens once every couple of thousand calls, it's pretty much impossible to reproduce this on a development environment.
How do I best debug this? It would be good to see the action that was being executed. I am using callbacks in my code, no promises.