Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract failed when contract service is not set #96

Open
zhangkang0911 opened this issue Feb 17, 2025 · 0 comments
Open

Contract failed when contract service is not set #96

zhangkang0911 opened this issue Feb 17, 2025 · 0 comments

Comments

@zhangkang0911
Copy link

panic recovered: reflect: call of reflect.Value.IsNil on zero Value
goroutine 69 [running]:
github.com/samber/slog-http.Recovery.func1.1()
/go/pkg/mod/github.com/samber/slog-http@v1.3.1/recovery.go:14 +0x8b
panic({0x1330d80?, 0xc005cd2a80?})
/usr/local/go/src/runtime/panic.go:785 +0x136
reflect.Value.IsNil({0x0, 0x0, 0x0})
/usr/local/go/src/reflect/value.go:1558 +0x172
github.com/go-dataspace/run-dsp/dsp.(*dspHandlers).providerContractRequestHandler(0xc0003149a0, {0x17d6df0, 0xc000227aa0}, 0xc0003b12c0)
/app/dsp/contract_handlers.go:131 +0xbf7
github.com/go-dataspace/run-dsp/dsp.WrapHandlerWithError.func1({0x17d6df0, 0xc000227aa0}, 0xc0003b1180)
/app/dsp/error_wrapper.go:44 +0x5e
net/http.HandlerFunc.ServeHTTP(0xc0000a9860, {0x17d6df0, 0xc000227aa0}, 0xc0003b1180)
/usr/local/go/src/net/http/server.go:2220 +0x33
net/http.(*ServeMux).ServeHTTP(0xc0001ca2a0, {0x17d6df0, 0xc000227aa0}, 0xc0003b1180)
/usr/local/go/src/net/http/server.go:2747 +0x3c2
github.com/go-dataspace/run-dsp/internal/authforwarder.HTTPMiddleware.func1({0x17d6df0, 0xc000227aa0}, 0xc0003b1180)
/app/internal/authforwarder/httpmiddleware.go:35 +0x115
net/http.HandlerFunc.ServeHTTP(0xc00025c210, {0x17d6df0, 0xc000227aa0}, 0xc0003b1040)
/usr/local/go/src/net/http/server.go:2220 +0x33
github.com/go-dataspace/run-dsp/internal/server.jsonHeaderMiddleware.func1({0x17d6df0, 0xc000227aa0}, 0xc0003b1040)
/app/internal/server/header_middleware.go:44 +0x5b2
net/http.HandlerFunc.ServeHTTP(0xc00025c228, {0x17d6df0, 0xc000227aa0}, 0xc0003b1040)
/usr/local/go/src/net/http/server.go:2220 +0x33
github.com/go-dataspace/run-dsp/logging.NewMiddleware.func1.1({0x17d6df0, 0xc000227aa0}, 0xc0003b1040)
/app/logging/http_middleware.go:36 +0x482
net/http.HandlerFunc.ServeHTTP(0xc0002d6260, {0x17d6df0, 0xc000227aa0}, 0xc0003b0dc0)
/usr/local/go/src/net/http/server.go:2220 +0x33
github.com/samber/slog-http.NewWithConfig.func1.1({0x17d6bd0, 0xc005cd60e0}, 0xc0003b0dc0)
/go/pkg/mod/github.com/samber/slog-http@v1.3.1/middleware.go:250 +0x622
net/http.HandlerFunc.ServeHTTP(0xc000678e40, {0x17d6bd0, 0xc005cd60e0}, 0xc0003b0c80)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant