Hi,
I have a couple of docker containers running of which one is a server- and one an Algorand container. From the server container I can ping the Algorand container. However, when trying to list wallets via the api I get the error returned:
dial tcp 192.xxx.xxx.x:7833: connect: connection refused
// create KMD client
kmdClient, err := kmd.MakeClient(KMDADDRESS, KMDTOKEN)
// Create an algod client
algodClient, err := algod.MakeClient(ALGODADDRESS, ALGODTOKEN)
// Get the list of wallets
listResponse, err := kmdClient.ListWallets()
if err != nil {
return "", err
}
Both kmdClient and algodClient are created.
Furthermore, all containers are connected to the dev_projects_default
network. When running
$ docker network inspect dev_projects_default
yields the ip addresses of all the containers.
Complete error:
Get "http://192.xxx.xxx.x:7833/v1/wallets": dial tcp 192.xxx.xxx.x:7833: connect: connection refused
listResponse is: {{{} false } []}
Any help appreciated