nutritious-shampoo-95536
11/21/2022, 5:31 AMgetting socket hangout error
when trying with expand REST api.
curl --location --request GET '<http://127.0.0.1:4466/relation-tuples/expand?namespace=groups&object=test/manager&relation=member>' \
--header 'Content-Type: application/json' \
--data-raw ''
And I have below error logs.
keto-new-copy-keto-1 | time=2022-11-21T05:31:06Z level=info msg=started handling request http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br connection:keep-alive content-type:application/json postman-token:0ef37af9-2f24-4cbf-bda0-b0e4b5d1d2b9 user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4466 method:GET path:/relation-tuples/expand query:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". remote:172.24.0.1:45948 scheme:http]
keto-new-copy-keto-1 | 2022/11/21 05:31:06 http: panic serving 172.24.0.1:45948: runtime error: invalid memory address or nil pointer dereference
keto-new-copy-keto-1 | goroutine 2678 [running]:
keto-new-copy-keto-1 | net/http.(*conn).serve.func1()
keto-new-copy-keto-1 | /usr/local/go/src/net/http/server.go:1850 +0xbf
keto-new-copy-keto-1 | panic({0x11af9a0, 0x1df9b10})
keto-new-copy-keto-1 | /usr/local/go/src/runtime/panic.go:890 +0x262
keto-new-copy-keto-1 | <http://github.com/ory/keto/internal/relationtuple.(*Mapper).ToTree(0xc0003d8c10|github.com/ory/keto/internal/relationtuple.(*Mapper).ToTree(0xc0003d8c10>, {0x16545d8, 0xc000b166f0}, 0x0)
keto-new-copy-keto-1 | /project/internal/relationtuple/uuid_mapping.go:314 +0x13f
keto-new-copy-keto-1 | <http://github.com/ory/keto/internal/expand.(*handler).getExpand(0xc0005648e0|github.com/ory/keto/internal/expand.(*handler).getExpand(0xc0005648e0>, {0x7f0e95dd3be0, 0xc000462038}, 0xc000743200, {0xc000093f90?, 0x0?, 0xc000420df5?})
keto-new-copy-keto-1 | /project/internal/expand/handler.go:100 +0x325
keto-new-copy-keto-1 | <http://github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0001302a0|github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0001302a0>, {0x7f0e95dd3be0, 0xc000462038}, 0xc000743200)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x81c
keto-new-copy-keto-1 | <http://github.com/urfave/negroni.Wrap.func1({0x7f0e95dd3be0|github.com/urfave/negroni.Wrap.func1({0x7f0e95dd3be0>, 0xc000462038}, 0x11ef940?, 0xc0006943e0)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46 +0x4b
keto-new-copy-keto-1 | <http://github.com/urfave/negroni.HandlerFunc.ServeHTTP(0x11c49e0|github.com/urfave/negroni.HandlerFunc.ServeHTTP(0x11c49e0>?, {0x7f0e95dd3be0?, 0xc000462038?}, 0xc000110fc0?, 0x0?)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29 +0x33
keto-new-copy-keto-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP({{0x164afa0|github.com/urfave/negroni.middleware.ServeHTTP({{0x164afa0>?, 0xc000460b28?}, 0xc000460c00?}, {0x7f0e95dd3be0, 0xc000462038}, 0x18?)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38 +0xb6
keto-new-copy-keto-1 | <http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP(0xc0006e4230|github.com/ory/x/reqlog.(*Middleware).ServeHTTP(0xc0006e4230>, {0x7f0e95dd3be0?, 0xc000462038}, 0xc000743200, 0xc0006943c0)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/ory/x@v0.0.473/reqlog/middleware.go:134 +0x39d
keto-new-copy-keto-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP({{0x1647b40|github.com/urfave/negroni.middleware.ServeHTTP({{0x1647b40>?, 0xc0006e4230?}, 0xc000460be8?}, {0x7f0e95dd3be0, 0xc000462038}, 0x0?)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38 +0xb6
keto-new-copy-keto-1 | <http://github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc00045cba0|github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc00045cba0>, {0x1653f20?, 0xc000982900}, 0x1643440?)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:96 +0x125
keto-new-copy-keto-1 | <http://go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*Handler).ServeHTTP(0xc0007006e0|go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*Handler).ServeHTTP(0xc0007006e0>, {0x1652f00?, 0xc000b500e0}, 0xc000742f00)
keto-new-copy-keto-1 | /go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.35.0/handler.go:204 +0x10b1
keto-new-copy-keto-1 | <http://github.com/ory/x/otelx.TraceHandler.func1({0x1652f00|github.com/ory/x/otelx.TraceHandler.func1({0x1652f00>, 0xc000b500e0}, 0xc000742f00)
keto-new-copy-keto-1 | /go/pkg/mod/github.com/ory/x@v0.0.473/otelx/middleware.go:48 +0x5d
keto-new-copy-keto-1 | net/http.HandlerFunc.ServeHTTP(0xc000420dfc?, {0x1652f00?, 0xc000b500e0?}, 0x474b2e?)
keto-new-copy-keto-1 | /usr/local/go/src/net/http/server.go:2109 +0x2f
keto-new-copy-keto-1 | net/http.serverHandler.ServeHTTP({0xc000b16540?}, {0x1652f00, 0xc000b500e0}, 0xc000742f00)
keto-new-copy-keto-1 | /usr/local/go/src/net/http/server.go:2947 +0x30c
keto-new-copy-keto-1 | net/http.(*conn).serve(0xc000afe000, {0x16545d8, 0xc00062e4e0})
keto-new-copy-keto-1 | /usr/local/go/src/net/http/server.go:1991 +0x607
keto-new-copy-keto-1 | created by net/http.(*Server).Serve
keto-new-copy-keto-1 | /usr/local/go/src/net/http/server.go:3102 +0x4db
Any idea why I'm getting the above error?steep-lamp-91158
steep-lamp-91158
nutritious-shampoo-95536
11/22/2022, 8:36 AMOry is the largest open source community in the world for cloud software application security. We maintain advanced open source security software solving authentication, authorization, access control, application network security, and delegation. Ory implements a variety of industry and best-practice standards including OAuth 2.0 / OAuth 2.1, OpenID Connect, Zero Trust Networking, Google Zanzibar Policy Framework, FIDO2 U2F, WebAuthn, TOTP, and more.
Powered by