Open snobu opened 1 year ago
Adding consumerGroup
fixed the container startup problem, but now i'm simply not getting anything in the request body -
Container Apps Log Stream -
2023-01-27T10:51:43.30244 Connecting to the container 'dapr-eventhub'...
2023-01-27T10:51:43.32251 Successfully Connected to container: 'dapr-eventhub'
2023-01-27T10:50:26.146309473Z req.Body is: {}
My code -
func main() {
http.HandleFunc("/eventhub-input-binding", func(rw http.ResponseWriter, req *http.Request) {
var _time TheTime
fmt.Printf("req.Body is: %s\n", req.Body)
...
dapr container -
level=info msg="app has not subscribed to binding eventhub-input-binding."
So i guess that's what i'm missing now. How do i subscribe to the binding?
Also, do i really need this name
property?
name: eventhub-input-binding
How does dapr know what to call inside my container? Is this what gives it the URL? I'm quite confused here.
@snobu I believe that you are missing couple of important configurations for this binding component.
Please see all required fields here https://docs.dapr.io/reference/components-reference/supported-bindings/eventhubs/
I can quickly see that eventHub
and eventHubNamespace
are missing, that may be a reason for events are being subscripted
I would suggest before running it on ACA, validate locally so you can isolate problem your own better.
@BlackRider97 In the docs, it says eventHubNamespace
and connectionString
mutually exclude.
I'm trying to define a dapr Event Hubs input binding for my Container App.
Here's what i came up with -
Initially, i did not have storageAccountName and storageAccountKey in, and that made the sidecar container fail to start with
storageAccountName is required
, so i got the hint.Now, the dapr sidecar container just crashes on startup and the system logs don't give me anything useful.
Is there an obvious mistake i'm making in the YAML definition?
This is what i use to apply it -