Async counters not working

Good morning BE team!,
I just realized that the async call to backendless.counters is not working.





function getID(object, property, table)
{
 var counter = Backendless.Counters.of( table );
 
 // sync call
 var counterValue = counter.incrementAndGet();
 console.log('counterValue: ' + counterValue); //works perfectly






 // async call
 counter.incrementAndGet( response );

Backendless.Counters.incrementAndGet( table, response);




 function response (respuesta) //it is never called...
 {
 if(!isNaN(respuesta))
 {
 object[property] = respuesta;
 }



 }




}



I have to make asynchronous calls for my WP app to work, thus this is a major problem for me. Also this may fix this problem http://support.backendless.com/t/counters-not-working-in-nodejs

Just to confirm, are you making an async call from a Node.JS environment?

Nope, this time is from regular JS.

I cannot reproduce, it is working just fine for me. Here it is with my app id and secret key:

http://jsfiddle.net/0f3tbxtv/1/

Well, it was my fault, i completely missed this line

var callback = new Backendless.Async( successCallback, failureCallback );

So i was passing the success function as the parameter.

Sorry for the inconvenience, i’ll get back to you on the other thread as to wheter this was happening as well on node.js