You already have the called method in debug mode. Try later or check you breakpoints.

I’m getting this error:

You already have the called method in debug mode. Try later or check you breakpoints.

When my code is invoking a function exposed via my custom hosted service (client side is also using Java/Android SDK).

What does it mean exactly? Am I not allowed to call the same function twice?

Same problem here. I’m calling 2 different API methods and one of them is returning this error.

If I only call one, then it works. Do we need to call them sequentially? Or this only happens when in debug mode?

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.

This is a behavior specific to the debug mode. It’s not expected in production mode.

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.

Hope that helps.
Artur