You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequestManager.prototype.poll=function(){this.timeout=setTimeout(this.poll.bind(this),c.ETH_POLLING_TIMEOUT);if(!this.polls.length){return;}if(!this.provider){console.error(errors.InvalidProvider());return;}varpayload=Jsonrpc.getInstance().toBatchPayload(this.polls.map(function(data){returndata.data;}));varself=this;this.provider.sendAsync(payload,function(error,results){// TODO: console log?if(error){return;}if(!utils.isArray(results)){throwerrors.InvalidResponse(results);}results.map(function(result,index){result.callback=self.polls[index].callback;// <- ERROR is herereturnresult;}).filter(function(result){varvalid=Jsonrpc.getInstance().isValidResponse(result);if(!valid){result.callback(errors.InvalidResponse(result));}returnvalid;}).filter(function(result){returnutils.isArray(result.result)&&result.result.length>0;}).forEach(function(result){result.callback(null,result.result);});});};
It seems like the results returned still have the same index, which does fit with the callback index anymore.
A quick fix would be to check if(self.polls[index]), but we probably should better check if the poll is not firing the non-existing filter anymore, as i got 101 errors of the above type.
The text was updated successfully, but these errors were encountered:
After calling
MyFilter.stopWatching()
i get:pointing to:
It seems like the results returned still have the same index, which does fit with the callback index anymore.
A quick fix would be to check
if(self.polls[index])
, but we probably should better check if the poll is not firing the non-existing filter anymore, as i got 101 errors of the above type.The text was updated successfully, but these errors were encountered: