Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker sepolia chain does not work #374

Open
tjayrush opened this issue Dec 16, 2022 · 2 comments
Open

docker sepolia chain does not work #374

tjayrush opened this issue Dec 16, 2022 · 2 comments
Assignees

Comments

@tjayrush
Copy link
Member

Summary:

Access to mainnet node works on both localhost (Mac) and from inside docker. Access to sepolia, only works from localhost.

On my Macintosh, I can do:

curl -H "Content-Type: application/json" -d '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' http://localhost:30305

and get block 12 from Sepolia. I can also do

curl -H "Content-Type: application/json" -d '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' http://localhost:23456

To get block 12 from mainnet.

If I log into the docker image, I can do:

curl -H "Content-Type: application/json" -d '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' http://host.docker.internal:23456

And I get block 12 from mainnet.

If I try:

curl -H "Content-Type: application/json" -d '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' http://host.docker.internal:30305

from the same docker image, I get invalid host specified.

@dszlachta
Copy link
Collaborator

Hm, I was able to reach Sepolia RPC running on localhost (Erigon). Maybe there are some additional checks/firewall between you and your endpoint? Could you try starting Sepolia locally with ./build/bin/erigon --http.api=eth,debug,net,trace,web3,erigon --chain=sepolia --datadir /tmp/datadir and reaching it as host.docker.internal:8545?

@tjayrush
Copy link
Member Author

tjayrush commented Jan 1, 2023

Let's review this tomorrow (Monday, Jan 2). It's still not working for me.

@tjayrush tjayrush changed the title Sepolia chain does not work docker sepolia chain does not work Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants