cubedro / eth-net-intelligence-api

Ethereum Network Intelligence API
http://tinyurl.com/ofndjbo
GNU General Public License v3.0
324 stars 345 forks source link

Ensure `results` is always an array #242

Closed mpitid closed 1 year ago

mpitid commented 8 years ago

Under certain conditions (_items.length < 2) eth-netstats passes false as the history range, in which case interv will be {} and so will be results, and the process will crash because reverse is undefined.

A crash would also happen in case of error.

maxidev commented 7 years ago

Please merge this.

mingfang commented 6 years ago

can someone merge this?

FizzBuzz791 commented 6 years ago

Yeah, I've just hit this too, would be good to get it merged. @cubedro

shubhamtbc commented 6 years ago

i have changed the node.js file with given changes still getting error.I have attached the image below

capture Can someone help me with this