I’m trying to connect to the trial cloud database using the Go code on my localhost machine.
cp := aero.NewClientPolicy()
cp.User = "apiKey"
cp.Password = "secret"
cp.Timeout = 3 * time.Second
cp.TlsConfig = &tls.Config{}
client, err := aero.NewClientWithPolicyAndHost(cp, aero.NewHost("<myhost>.asdb.io", 3000))
Constantly getting the Timeout error. Here is the log:
2024/08/15 13:28:42 No nodes available; seeding...
2024/08/15 13:28:42 Seeding the cluster. Seeds count: 3
2024/08/15 13:28:42 Node Validator has 1 nodes and they are: [3.213.27.154:3000]
2024/08/15 13:28:42 Node Validator has 1 nodes and they are: [3.222.97.32:3000]
2024/08/15 13:28:42 Node Validator has 1 nodes and they are: [34.197.170.120:3000]
2024/08/15 13:28:44 Connection to address `34.197.170.120:3000` failed to establish with error: dial tcp 34.197.170.120:3000: i/o timeout
2024/08/15 13:28:44 Connection to address `3.213.27.154:3000` failed to establish with error: dial tcp 3.213.27.154:3000: i/o timeout
2024/08/15 13:28:44 Alias 34.197.170.120:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 34.197.170.120:3000: i/o timeout
2024/08/15 13:28:44 Seed 34.197.170.120:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 34.197.170.120:3000: i/o timeout
2024/08/15 13:28:44 Connection to address `3.222.97.32:3000` failed to establish with error: dial tcp 3.222.97.32:3000: i/o timeout
2024/08/15 13:28:44 Alias 3.222.97.32:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 3.222.97.32:3000: i/o timeout
2024/08/15 13:28:44 Seed 3.222.97.32:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 3.222.97.32:3000: i/o timeout
2024/08/15 13:28:44 Alias 3.213.27.154:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 3.213.27.154:3000: i/o timeout
2024/08/15 13:28:44 Seed 3.213.27.154:3000 failed: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 3.213.27.154:3000: i/o timeout
2024/08/15 13:28:44 ResultCode: INVALID_NODE_ERROR, Iteration: 0, InDoubt: false, Node: <nil>: Failed to connect to hosts: [3.222.97.32:3000 34.197.170.120:3000 3.213.27.154:3000]
ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: Timeout
dial tcp 34.197.170.120:3000: i/o timeout
2024/08/15 13:28:44 No nodes available; seeding...
2024/08/15 13:28:44 Seeding the cluster. Seeds count: 3
2024/08/15 13:28:44 Node Validator has 1 nodes and they are: [3.213.27.154:3000]
2024/08/15 13:28:44 Node Validator has 1 nodes and they are: [3.222.97.32:3000]
2024/08/15 13:28:44 Node Validator has 1 nodes and they are: [34.197.170.120:3000]
2024/08/15 13:28:45 Failed to connect to host(s): [d8d839ab-5811-4950-b3ae-7dbf5170fdd5.asdb.io:3000]; error: ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: command execution timed out on client: See `Policy.Timeout`
2024/08/15 13:28:45 Exception connecting aero spike cluster ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: command execution timed out on client: See `Policy.Timeout`