Problem
One of my listeners stops working after I run some Custom Code within it.
Details
I add an “RT Data Create” Listener to a table called “Invites”. It listens for invites created for the user. After performing a few small generic actions, it calls some Custom Code (JS) which runs a Transaction called “tryToAcceptInvites”. Basically this code tries to accept one of the invites on the user’s behalf, as long as this user and the other user haven’t already accepted another invite.
The first time an invite is created for the user, the Listener successfully fires. But the second time and all subsequent times, it doesn’t fire. But I figured out that if I disable the Custom Code “tryToAcceptInvites” within it, it correctly continues to fire.
So something in my Custom Code is killing the Listener. Does this ring a bell for anyone experienced with Backendless? What could make a Listener just “die” like this?