Python Client - Connecting to db

I have the following command:

config = {
  'hosts': [ ('AWSPUBLICIP', 8000)  ]
}

client = aerospike.client(config).connect()

but i get this error

    client = aerospike.client(config).connect()
exception.TimeoutError: (9, 'Failed to connect', 'src/main/aerospike/as_cluster.c', 254, False)

Any idea how to fix this? Thanks

Normally Aerospike is running on port 3000 - unless you configured the service port otherwise.

Also is 'AWSPUBLICIP' a placeholder - cause that probably won’t work.

Typically not a good idea to deploy with the server exposed over a public interface.

1 Like

AWSPUBLICIP is just a variable. Thanks for the help, it’s fixed now.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.