-
Notifications
You must be signed in to change notification settings - Fork 543
Description
In what area(s)?
cosmos db binding
docs - https://docs.dapr.io/reference/components-reference/supported-bindings/cosmosdb/
What version of Dapr?
1,4
self hosted
Expected Behavior
doing a POST on http://localhost:58219/v1.0/bindings/cosmosdb-output should create an item in cosmos container.
Actual Behavior
[dapr-second-dapr_e1dcfc90-c]: panic: reflect: call of reflect.Value.Elem on map Value
[dapr-second-dapr_e1dcfc90-c]:
[dapr-second-dapr_e1dcfc90-c]: goroutine 2194 [running]:
[dapr-second-dapr_e1dcfc90-c]: reflect.Value.Elem({0x2c7eaa0, 0xc000d392c0, 0xc0010a8670})
[dapr-second-dapr_e1dcfc90-c]: C:/hostedtoolcache/windows/go/1.17.1/x64/src/reflect/value.go:1178 +0x15a
[dapr-second-dapr_e1dcfc90-c]: github.com/a8m/documentdb.DefaultIdentificationHydrator(0xc000522540, {0x2c7eaa0, 0xc000d392c0})
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/a8m/documentdb@v1.3.0/documentdb.go:29 +0xa9
[dapr-second-dapr_e1dcfc90-c]: github.com/a8m/documentdb.(*DocumentDB).CreateDocument(0xc000004270, {0xc0005d6be0, 0x20}, {0x2c7eaa0, 0xc000d392c0}, {0xc000144d80, 0x1, 0x1})
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/a8m/documentdb@v1.3.0/documentdb.go:285 +0xbd
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/components-contrib/bindings/azure/cosmosdb.(*CosmosDB).Invoke(0xc000621340, 0xc000d39290)
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/dapr/components-contrib@v1.4.0-rc2/bindings/azure/cosmosdb/cosmosdb.go:134 +0xfc
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/dapr/pkg/runtime.(*DaprRuntime).sendToOutputBinding(0x3db47, {0xc000d67280, 0xf}, 0xc000d39290)
[dapr-second-dapr_e1dcfc90-c]: D:/a/dapr/dapr/pkg/runtime/runtime.go:743 +0x3f2
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/dapr/pkg/http.(*api).onOutputBindingMessage(0xc00033be60, 0xc000728c00)
[dapr-second-dapr_e1dcfc90-c]: D:/a/dapr/dapr/pkg/http/api.go:403 +0x72f
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/dapr/pkg/http.(*server).unescapeRequestParametersHandler.func1(0xc000728c00)
[dapr-second-dapr_e1dcfc90-c]: D:/a/dapr/dapr/pkg/http/server.go:245 +0x71
[dapr-second-dapr_e1dcfc90-c]: github.com/fasthttp/router.(*Router).Handler(0xc000334e00, 0xc000728c00)
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/fasthttp/router@v1.3.8/router.go:414 +0x44a
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/dapr/pkg/diagnostics.(*httpMetrics).FastHTTPMiddleware.func1(0xc000728c00)
[dapr-second-dapr_e1dcfc90-c]: D:/a/dapr/dapr/pkg/diagnostics/http_monitoring.go:187 +0x137
[dapr-second-dapr_e1dcfc90-c]: github.com/dapr/dapr/pkg/diagnostics.HTTPTraceMiddleware.func1(0xc000728c00)
[dapr-second-dapr_e1dcfc90-c]: D:/a/dapr/dapr/pkg/diagnostics/http_tracing.go:48 +0xf2
[dapr-second-dapr_e1dcfc90-c]: github.com/valyala/fasthttp.(*Server).serveConn(0xc000eb6900, {0x39cc558, 0xc000006dd8})
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/valyala/fasthttp@v1.28.0/server.go:2239 +0x10cb
[dapr-second-dapr_e1dcfc90-c]: github.com/valyala/fasthttp.(*workerPool).workerFunc(0xc0001e6e60, 0xc000990e20)
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/valyala/fasthttp@v1.28.0/workerpool.go:223 +0xa9
[dapr-second-dapr_e1dcfc90-c]: github.com/valyala/fasthttp.(*workerPool).getCh.func1()
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/valyala/fasthttp@v1.28.0/workerpool.go:195 +0x38
[dapr-second-dapr_e1dcfc90-c]: created by github.com/valyala/fasthttp.(*workerPool).getCh
[dapr-second-dapr_e1dcfc90-c]: C:/Users/runneradmin/go/pkg/mod/github.com/valyala/fasthttp@v1.28.0/workerpool.go:194 +0x1b5
[dapr-second-dapr_e1dcfc90-c]: The daprd process exited with error code: exit status 2
[dapr-second-dapr_e1dcfc90-c]:
[dapr-second-dapr_e1dcfc90-c]: terminated signal received: shutting down
Steps to Reproduce the Problem
Create cosmos binding and make a curl request to do a POST with create operation.