not getting an error
# spicedb
j
its because the error comes out of
WriteSchema
as I said:
Copy code
$ ./testprog      
Hello world!
waiting for spice...rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp: address definitelynotalink: missing port in address"
I added
Copy code
_, err = client.SchemaServiceClient.WriteSchema(context.Background(), &v1.WriteSchemaRequest{
        Schema: string(schema),
    })

    fmt.Println(err)
and its printing the error now
the client only connects on the first request made
d
oh intersting. Dont know why that wasnt showing up for me. So chcking for err != nil doesnt really do much then?
j
it does
but connection errors occur on the first API call
not the client create
that can return different errors
d
Thanks for the help!
I really appreciate it!