cubedro / eth-netstats

Ethereum Network Stats
https://ethstats.net/
GNU General Public License v3.0
854 stars 539 forks source link

Error: [$interpolate:interr] #329

Open headyj opened 5 years ago

headyj commented 5 years ago

Hello,

I'm having some issues on the dashboard. It looks like the data are not properly refreshed (I have to manually restart the dashboard to update it) and the console is sending a lot of error logs like this one:

netstats.min.js:110 Error: [$interpolate:interr] http://errors.angularjs.org/1.2.28/$interpolate/interr?p0=%7B%7B%20lastDifficulty%20%7C%20totalDifficultyFilter%20%7D%7D&p1=TypeError%3A%20result.toFixed%20is%20not%20a%20function at netstats.min.js:24 at Object.p (netstats.min.js:98) at h.$digest (netstats.min.js:128) at h.$apply (netstats.min.js:131) at netstats.min.js:362 (anonymous) @ netstats.min.js:110 (anonymous) @ netstats.min.js:86 p @ netstats.min.js:99 $digest @ netstats.min.js:128 $apply @ netstats.min.js:131 (anonymous) @ netstats.min.js:362

Could you please help me fixing this issue?

EDIT: the corrected link leads to this page: https://docs.angularjs.org/error/$interpolate/interr?p0=%7B%7B%20lastDifficulty%20%7C%20totalDifficultyFilter%20%7D%7D&p1=TypeError:%20result.toFixed%20is%20not%20a%20function

Thanks

nelaturuk commented 5 years ago

I am seeing the same issue.is there any fix for this ?

mikeyb commented 5 years ago

TypeError: result.toFixed is not a function I would check to make sure that call is returning a valid result and not null or undefined

marcosmartinez7 commented 5 years ago

Same issue here, any updates?

Im using the latest version

5chdn commented 5 years ago

Does it also happen with https://github.com/goerli/ethstats-server ?

ghost commented 2 years ago

This happens since the filter function doesn't check the input type, adding a simple type test would address this issue.