Skip to content

Instantly share code, notes, and snippets.

@hopkinsth
Last active August 29, 2015 14:09
Show Gist options
  • Save hopkinsth/2b2c68b1a116ff3f40c1 to your computer and use it in GitHub Desktop.
Save hopkinsth/2b2c68b1a116ff3f40c1 to your computer and use it in GitHub Desktop.
aerospike connection error sample
package main
import (
as "github.com/aerospike/aerospike-client-go"
asl "github.com/aerospike/aerospike-client-go/logger"
"log"
)
func main() {
asl.Logger.SetLevel(asl.DEBUG)
_, err := as.NewClient("127.0.0.1", 3000)
if err != nil {
log.Fatalln(err)
}
log.Println("hey!")
}
2014/11/17 21:28:04 No connections available; seeding...
2014/11/17 21:28:04 Seeding the cluster. Seeds count: 1
2014/11/17 21:28:04 Seed 127.0.0.1:3000 failed: lookup 127.0.0.1: invalid domain name
2014/11/17 21:28:04 Tend finished. Live node count: 0
2014/11/17 21:28:04 No connections available; seeding...
2014/11/17 21:28:04 Seeding the cluster. Seeds count: 1
2014/11/17 21:28:04 Seed 127.0.0.1:3000 failed: lookup 127.0.0.1: invalid domain name
2014/11/17 21:28:04 Tend finished. Live node count: 0
2014/11/17 21:28:04 Failed to connect to host(s): [127.0.0.1:3000]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment