cubedro / eth-net-intelligence-api

Ethereum Network Intelligence API
http://tinyurl.com/ofndjbo
GNU General Public License v3.0
327 stars 344 forks source link

`[eth] =✘= Web3 connection attempt #0 failed` #260

Open maroodb opened 6 years ago

maroodb commented 6 years ago

I have already geth clients running in my machine. I want to install the api and connected to my geth clients. I followed the readme and I have this processes.json file

"env":
    {
        "NODE_ENV"        : "production", // tell the client we're in production environment
        "RPC_HOST"        : "localhost", // eth JSON-RPC host
        "RPC_PORT"        : "8502", // eth JSON-RPC port
        "LISTENING_PORT"  : "30312", // eth listening port (only used for display)
        "INSTANCE_NAME"   : "", // whatever you wish to name your node
        "CONTACT_DETAILS" : "", // add your contact details here if you wish (email/skype)
        "WS_SERVER"       : "10.2.1.139", // path to eth-netstats WebSockets api server
        "WS_SECRET"       : "mypasswd", // WebSockets api server secret used for login
        "VERBOSITY"       : 2 // Set the verbosity (0 = silent, 1 = error, warn, 2 = error, warn, info, success, 3 = all logs)
    }

then when I run : npm start processes.json I got this error:

[eth] =✘= Web3 connection attempt #0 failed

nelaturuk commented 6 years ago

I am seeing this issue. Is there any known fix ?

mikeyb commented 6 years ago

Yeah, run rpc so web3 connection can be made. The fix is setting things up correctly.