When I try to deploy I got Error: no suitable peers available. net.peerCount says 2. Node is synced and keeps syncing when new blocks arrive.
Geth version: 1.8.12
OS & Version: Linux
+1
Same issue on Raspberry Pi when entering eth.getBalance(eth.accounts[0]) on geth Javascript console:
Error: no suitable peers available
at web3.js:3143:20
at web3.js:6347:15
at web3.js:5081:36
at <anonymous>:1:1
Edit: Started working shortly after posting. May have needed more time after finishing synchronization, but not entirely sure.
Restarting without using the argument --light fixed it for me.
u may add peer for light node. --> node list
Calling following API is giving me this error:
web3.eth.getCode("0x0....123")
Is there a way to get this API working? Do I need to add peers to my client?
Facing this now :
geth --rinkeby --rpc --syncmode "light" --rpcport 8543 --rpcaddr 127.0.0.1 --rpccorsdomain "*" --port "35555" --rpcapi "eth,net,web3,personal,miner,admin"
The original issue is fairly old and a lot of work went into les, so I'd close this issue. As for Rinkeby, it probably could help to check port forwarding.
Most helpful comment
+1