ethnode icon indicating copy to clipboard operation
ethnode copied to clipboard

Could not fetch chain ID. Is your RPC URL correct?

Open elylon1101 opened this issue 4 years ago • 7 comments

image image

elylon1101 avatar Nov 09 '21 09:11 elylon1101

image

elylon1101 avatar Nov 09 '21 09:11 elylon1101

Uhm this should work out of the box (I use it myself). Some screenshots:

image

image

image

Can you try to run on a terminal curl -k -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"eth_chainId","id":1}' http://localhost:8545 and tell me what you get?

vrde avatar Nov 17 '21 06:11 vrde

Its all about this piece of code in main.js file(strings 211 & 220): Now it looks like localhost, what makes node listen only on 127.0.0.1 or localhost. As long as operation system doesn't see Docker-container as localhost this doesn't work. Is you try to change this strings to '0.0.0.0' it would be able to interact with any incoming request. I can upload already fixed version if you want.

srcCraftsman avatar Apr 22 '22 08:04 srcCraftsman

@TessTea if you have a fix it would be great! Can you make a PR?

vrde avatar May 03 '22 05:05 vrde

@TessTea if you have a fix it would be great! Can you make a PR?

@vrde here it is

srcCraftsman avatar May 03 '22 11:05 srcCraftsman

@vrde Can

@TessTea if you have a fix it would be great! Can you make a PR?

@vrde here it is

@vrde Can you take a look at it?

srcCraftsman avatar May 25 '22 10:05 srcCraftsman

Thanks! Sorry for my late reply

vrde avatar May 27 '22 18:05 vrde