"Bad callback passed " error Message

Hello When I try to use the next piece of code I get the message error "Bad callback passed " return to me. I am a 100% sure I am passing a callback function with parameters (error, result). My questions is what are the possible reasons of this error. I am using the node client library.

C_CompanyDao.prototype.mf_getAll = function (pf_callback)
var l_strQuery = “SELECT c FROM Company_Bucket c;”;
var l_oQuery = this.m_n1qlQuery.fromString(l_strQuery);
this.m_oPrimaryBucket.query(l_oQuery, pf_callback);