metaspartan / explorer

Ethereum Block Explorer (ETHExplorer V2) - Realtime Price Ticker, Shapeshift.io Integration, etc. (Project is currently not under active development, if you have a bug fix, please open a PR) My current project can be found at https://github.com/metaspartan/denarius (D a better cryptocurrency than ETH)
Other
486 stars 330 forks source link

Error: invalid argument 0: hex string without 0x prefix #37

Closed theaayushanand closed 5 years ago

theaayushanand commented 6 years ago

Hello I have the explorer on a debian cloud and geth is running on 8545. The webapp is loading but the block transactions etc are not loading . I can see the following issues in the browser console .

Error: invalid argument 0: hex string without 0x prefix
InvalidResponse@http://my-ip:8000/bower_components/web3/dist/web3.min.js:1:27514
require<[43]</s.prototype.send@http://my-ip:8000/bower_components/web3/dist/web3.min.js:2:20636
require<[35]</a.prototype.send@http://my-ip:8000/bower_components/web3/dist/web3.min.js:2:12677
updateStats@http://my-ip:8000/scripts/controllers/mainController.js:118:37
@http://my-ip:8000/scripts/controllers/mainController.js:10:9
e@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:39:94
Xe/this.$get</</<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:80:149
L@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:61:140
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:326
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
g@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:54:349
V/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:53:388
d/</<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:20:4
$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:132:354
$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:133:47
d/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:19:477
e@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:39:94
d@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:19:398
yc@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:20:179
Zd@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:19:1
@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:292:51
a@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:173:491
c@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js:35:124
angular.js:12416:17

I have changed GETH_HOSTNAME and APP_HOSTNAME to my ip from localhost . do i need to make additional changes before running it on a cloud ?

Thanks for the help

sthnaqvi commented 6 years ago

Change GETH_HOSTNAME to your Ethereum Geth node IP and APP_HOSTNAME should be only localhost or 127.0.0.1

yuta-take commented 6 years ago

I have the same issue..

my geth machine is NAT Network VPN on public cloud .

fowrd setting. wan: 8000 to lan: vm_address:8000 wan: 8545 to lan: vm_address:8545

and geth command line option is " --rpcaddr "0.0.0.0" --rpcport 8545 --rpccorsdomain "*" "

and edit the "start" section on the package.json . "start": "http-server ./app -a 127.0.0.1 -p 8000 -c-1" to "start": "http-server ./app -a 0.0.0.0 -p 8000 -c-1"

I will see the explorer screen by the my laptop on the chrome.

and connect to WAN IP:8545 by the Metamask.

but An error has occurred.

angular.js:12416 Error: invalid argument 0: hex string without 0x prefix at Object.InvalidResponse (web3.min.js:1) at s.send (web3.min.js:2) at a.send (web3.min.js:2) at updateStats (mainController.js:118) at Object. (mainController.js:10) at Object.e [as invoke] (angular.js:4473) at Q.instance (angular.js:9093) at L (angular.js:8205) at g (angular.js:7637) at g (angular.js:7641)

athlona64 commented 6 years ago

same issue

sthnaqvi commented 6 years ago

@athlona64 use fork of this explorer https://github.com/sthnaqvi/explorer