etherparty/explorer Issues – How to Allow Access to Geth and Refresh the Page for Private Blockchain

explorersgo-ethereumjson-rpcparityprivate-blockchain

Does anyone here have experience with the etherparty/explorer blockchain explorer? I am having trouble connecting. I keep getting the error message

"Allow Access to Geth and Refresh the Page"

when I access localhost:8000.

I was running geth and had the same error messages, but now I am running parity. Here is how I invoke parity:

parity --chain dev  --dapps-apis-all --jsonrpc-cors "http://localhost:8000" --jsonrpc-apis "web3, eth" --jsonrpc-hosts="all" --networkid="<private-number>" --force-ui --ui-no-validation

Here is how etherparty/explorer says to invoke geth:

geth --rpc --rpccorsdomain "http://localhost:8000"

The RPC port is available at localhost:8545.

EDIT: I have since tested with geth, using the main net. I get the same error. So I am trying other things. Maybe it's how I'm installing (or failing to install) web3?

Best Answer

Not a complete answer, but might help...

Poking around at their code, the error is output when this part is run:

    if(!web3.isConnected()) {
        $('#connectwarning').modal({keyboard:false,backdrop:'static'}) 
        $('#connectwarning').modal('show') 
    }

Which implies there's a failure in the following code:

var eth_node_url = 'http://localhost:8545'; // TODO: remote URL
web3.setProvider(new web3.providers.HttpProvider(eth_node_url));
Related Topic