Invalid JSON RPC Response with web3.eth.filter

2018-04-16 14:54:42

I'm trying to retrieve all pending transactions by using web3.eth.filter given an address, but i always receive "Invalid JSON RPC Response "" ".

Web3 version is 0.20.6.

var filter = web3.eth.filter( 'pending' , {'address':0x6Ef57BE1168628A2bD6c5788322A41265084408a});

filter.watch(function (error, log) {

if ( error )

console.log(error.message);

else {

console.log(log);

}

});