Coder Social home page Coder Social logo

Comments (4)

whitj00 avatar whitj00 commented on September 7, 2024

Do you execute geth with that specific command? Could you go to your browser console and tell me the output

from explorer.

bitterlox avatar bitterlox commented on September 7, 2024

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.

from explorer.

whitj00 avatar whitj00 commented on September 7, 2024

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 [email protected] 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 #8 (comment)

from explorer.

bitterlox avatar bitterlox commented on September 7, 2024

Ok thanks for clearing it up.

from explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.