Closed bitterlox closed 8 years ago
Do you execute geth with that specific command? Could you go to your browser console and tell me the output
Ok so i'm actually in a command line environment so i did some minor changes to access it from outside.
Although i tried the vanilla settings with a cl browser and it didn't work aswell.
Running geth with:
/home/eth/geth --rpc --rpccorsdomain "http://0.0.0.0:8000" > /home/eth/.ethereum/gethlog.log 2>&1 &
And i changed this into package.json:
"start": "http-server ./app -a 45.32.184.76 -p 8000 -c-1",
To be honest i didn't think about looking at the js console, here's the output :
web3.min.js:2 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
2016-04-14 21:23:54.229 http://45.32.184.76:8000/bower_components/web3/dist/web3.min.js Failed to load resourcei.send @ web3.min.js:2
2016-04-14 21:23:54.315 http://45.32.184.76:8000/bower_components/web3/dist/web3.min.js Failed to load resourcei.send @ web3.min.js:2
2016-04-14 21:23:54.317 angular.js:12416Error: CONNECTION ERROR: Couldn't connect to node http://localhost:8545, is it running?
at Object.e.exports.InvalidConnection (web3.min.js:1)
at i.send (web3.min.js:2)
at s.send (web3.min.js:2)
at i.get (web3.min.js:2)
at new <anonymous> (mainController.js:4)
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)(anonymous function) @ angular.js:12416
2016-04-14 21:23:54.417 http://45.32.184.76:8000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
Hope this helps, thanks for the quick response.
Geth needs to run on the client, not server side. Also, if you’re accessing the site in chrome as ’45.32.184.76:8000’, it you need to make the rpccorsdomain the same, because that’s how the geth knows to let requests from that domain through.
On Apr 14, 2016, at 12:32 PM, BitterLox notifications@github.com wrote:
Ok so i'm actually in a command line environment so i did some minor changes to access it from outside. Although i tried the vanilla settings with a cl browser and it didn't work aswell. Running geth with: /home/eth/geth --rpc --rpccorsdomain "http://0.0.0.0:8000" > /home/eth/.ethereum/gethlog.log 2>&1 &
And i changed this into package.json: "start": "http-server ./app -a 45.32.184.76 -p 8000 -c-1",
My chrome console outputs this:
web3.min.js:2 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. 2016-04-14 21:23:54.229 http://45.32.184.76:8000/bower_components/web3/dist/web3.min.js Failed to load resourcei.send @ web3.min.js:2 2016-04-14 21:23:54.315 http://45.32.184.76:8000/bower_components/web3/dist/web3.min.js Failed to load resourcei.send @ web3.min.js:2 2016-04-14 21:23:54.317 angular.js:12416Error: CONNECTION ERROR: Couldn't connect to node http://localhost:8545, is it running? at Object.e.exports.InvalidConnection (web3.min.js:1) at i.send (web3.min.js:2) at s.send (web3.min.js:2) at i.get (web3.min.js:2) at new
(mainController.js:4) at Object.e as invoke at Q.instance (angular.js:9093) at L (angular.js:8205) at g (angular.js:7637) at g (angular.js:7641)(anonymous function) @ angular.js:12416 2016-04-14 21:23:54.417 http://45.32.184.76:8000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found) Hope this helps, thanks for the quick response. — You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/etherparty/explorer/issues/8#issuecomment-210113219
Ok thanks for clearing it up.
It always says that i have to execute geth with
geth --rpc --rpccorsdomain "http://localhost:8000"
My geth node is fully synced and up to date. Found this link to a demo somewhere, it seems to not work aswell. http://whitjack.me/explorer