I am trying to start local 0x-api(https://github.com/0xProject/0x-api).
I first tried starting the api setting Infura Rpc Url in .env
. Everything worked great.
But I want to use my Local Ethereum node with Geth instead of Infura. So I run Geth with --http.port 3334
because port 8545
is already in use by one of the docker images (as I understand) after sudo docker-compose up
.
After running Geth I can execute requests.
I changed my ETHEREUM_RPC_URL
in .env
to http://127.0.0.1:3334.
After that I do yarn
, yarn build
, sudo docker-compose up
, yarn db:migrate
and then start API with yarn start:service:swap_http
.
But after some seconds I got an error:
How to fix it?