Http: panic serving 127.0.0.1:45330, couchbase public-ip access

i’m trying to expose my local couchbase server, so i let one publicip:port to access my couchbase-server in local, i didn’t change any config, but while trying to connect via public ip, i got these :

2019/07/22 12:50:22 http: panic serving 127.0.0.1:45330: runtime error: invalid memory address or nil pointer dereference
goroutine 50 [running]:
net/http.(*conn).serve.func1(0xc0001bc000)
        /usr/local/go/src/net/http/server.go:1769 +0x139
panic(0x960b60, 0xee75f0)
        /usr/local/go/src/runtime/panic.go:522 +0x1b5
gopkg.in/couchbase/gocb%2ev1.(*Bucket).ExecuteN1qlQuery(0x0, 0xc0000cfad8, 0x921880, 0xc000194160, 0x0, 0x0, 0x0, 0x0)
        /home/grandong/go/src/gopkg.in/couchbase/gocb.v1/bucket_n1qlquery.go:9 +0xe1
main.SearchText(0xab5320, 0xc0001c40e0, 0xc0001c0000, 0x0, 0x0, 0x0)
        /home/grandong/go/src/github.com/julienschmidt/httprouter/router.go:334 +0x948
main.BeforeRequest.ServeHTTP(0xc0001a0060, 0xab5320, 0xc0001c40e0, 0xc0001c0000)
        /usr/local/go/src/net/http/server.go:2774 +0xa8
net/http.(*conn).serve(0xc0001bc000, 0xab5da0, 0xc0000ac9c0)
        /usr/local/go/src/net/http/server.go:1878 +0x851
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:2884 +0x2f4

is there anything wrong in the server config ? or ?

now it’s changed 2019/07/22 13:18:49 http: panic serving 127.0.0.1:33414: runtime error: invalid memory address or nil pointer dereference,

should the 127.0.0.1 access to public ip right ?