Code Monkey home page Code Monkey logo

Comments (19)

suyash515 avatar suyash515 commented on July 21, 2024 4

I had the same issue and on checking further in the source code, I saw that the values that were being specified in the app.json file were not being taken into consideration. The following worked for me:

RPC_HOST=server_ip RPC_PORT=port_here WS_SERVER=ws_server_here WS_SECRET=secret_key node app.js

This solved the problem and connected to my local node

from eth-net-intelligence-api.

5chdn avatar 5chdn commented on July 21, 2024

magically started working now :)

from eth-net-intelligence-api.

dclijste avatar dclijste commented on July 21, 2024

I have the same issue after updating netstats, unfortunately magic hasn't started working for me yet..

from eth-net-intelligence-api.

nickbarba avatar nickbarba commented on July 21, 2024

Had similar issue when ethereum was not running with rpc enabled. With geth:

geth --rpc

I updated the wiki

from eth-net-intelligence-api.

dclijste avatar dclijste commented on July 21, 2024

Thanks!

I just wanted to check my node and yes, I had --rpc enabled already but even better, somehow it fixed itself, seems magic did the trick for me!

from eth-net-intelligence-api.

dclijste avatar dclijste commented on July 21, 2024

gotcha, needed to run node 0.12 instead of 5.10 (or at least any lower version)

from eth-net-intelligence-api.

DavidBelinchon avatar DavidBelinchon commented on July 21, 2024

I have the same problem and not solve with rpc enabled.

  • I runnig geth wtih this parrams:
    --rpcaddr localhost --rpc --rpcport 8545 (I trying also rpcaddr 0.0.0.0)
  • my app.json:
    {
    "NODE_ENV" : "production",
    "RPC_HOST" : "localhost",
    "RPC_PORT" : "8545",
    "LISTENING_PORT" : "30303",
    "INSTANCE_NAME" : "geth",
    "CONTACT_DETAILS" : "",
    "WS_SERVER" : "http://localhost:3000",
    "WS_SECRET" : "",
    "VERBOSITY" : 2
    }
  • open inteligence api:
    pm2 start app.json
  • open netstats:
    PORT=3000 WS_SECRET=npm start
  • Error:
    [eth] =✘= Web3 connection attempt #0 failed

versions:
geth: 1.4.5
node: 0.12

from eth-net-intelligence-api.

phoax avatar phoax commented on July 21, 2024

Same problem.
I use Parity, and I get Web3 connection attempt #1 failed when I use the --jsonrpc-interface 0.0.0.0 option.

from eth-net-intelligence-api.

mingfang avatar mingfang commented on July 21, 2024

I'm also having this problem.
Why is this closed?

from eth-net-intelligence-api.

tony71318 avatar tony71318 commented on July 21, 2024

Same Issue Here.

from eth-net-intelligence-api.

mikeyb avatar mikeyb commented on July 21, 2024

well is the service listening? If it cant connect, its probably not running. Make it run and I bet you can connect. $5 says misconfiguration, try the docs again

from eth-net-intelligence-api.

tony71318 avatar tony71318 commented on July 21, 2024

I delete it all and redo again... it works.
Don't know where the problem was, but at least it works now.

from eth-net-intelligence-api.

zwx00 avatar zwx00 commented on July 21, 2024

Similar issue here, my web3 connection from eth-netstats fails despite that node is running normally with the following arguments:

geth --nodiscover --bootnodes enode://83faad28b4bd3cbf6fc2245a4f95ab9b068c30fd0b9972a4042aa5afe21128d2989e5cb6791e0193c5ed139fce41688a6ddceb9464a8fb155254ef0d112ececa@<bleh>:30303 --networkid 14 --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "*" --rpcapi web3,eth,net,db,personal,miner,admin,debug --fast

I can connect from any machine using:

geth attach http://<bleh>:8545/

And can use all of the enabled apis. Any ideas?

from eth-net-intelligence-api.

ccdle12 avatar ccdle12 commented on July 21, 2024

Experiencing the same problem, using docker, have any solutions occurred?

from eth-net-intelligence-api.

ccdle12 avatar ccdle12 commented on July 21, 2024

Adding the --rpc worked for me, was using docker and k8s

from eth-net-intelligence-api.

brannondorsey avatar brannondorsey commented on July 21, 2024

@suyash515 great catch. I too was experiencing this problem and your comment saved me a lot of headache +1.

from eth-net-intelligence-api.

maroodb avatar maroodb commented on July 21, 2024

same error here.

from eth-net-intelligence-api.

bivalent avatar bivalent commented on July 21, 2024

@suyash515 +1 as well. Surprised that there hasn't been an update to this yet? Otherwise a super cool tool. Probably could also use some sort of log-level option; theres a ton of output from the tool that makes doing other work on the instance difficult

from eth-net-intelligence-api.

StarNeit avatar StarNeit commented on July 21, 2024

Hello @phoax
Were you able to run using Parity before?
When I am using infura, I am getting erros like

[eth] xx> getLatestBlock couldn't fetch block...

[eth] xx> Error: invalid argument 0: empty hex string

image

Any advice will be helpful, thank you

from eth-net-intelligence-api.

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.