I’m not calling a custom event from within my custom event. My issue is the same as jdev said, when I invoke two API methods at moreorless the same time is when I get the error sometimes.
Sergey, is there anyway this can be avoided/fixed in debug mode? I’m finding it hard to develop in debug mode when this error occurs frequently and instead have to do a deploy each time to test fixes/new features.
Hi @Simon, @jdev
It is not a bug but protection for keeping connection active for a long time. Imagine it like a single-threaded executor that can execute only one action at single moment and rejects another actions if they arrive.
So you have to call methods sequentially with some delay.The easiest way to do so is to use Thread.sleep(500) between each calls.