Azure / azure-functions-dapr-extension

Extension for interacting with Dapr APIs from an Azure Function
MIT License
100 stars 34 forks source link

DaprBindingTrigger not triggering when running dapr locally #187

Open MarekLani opened 10 months ago

MarekLani commented 10 months ago

I have been developing azure function (tried both isolated and in process model) which utilizes the Dapr trigger binding, set to connect to Azure Service Bus. Azure function is supposed to get invoked with new message landing in the queue. When testing the setup locally I noticed very strange behavior. If I run the app using dapr run command, function doesn't get invoked. However if I start functions project via VS Code and only then start dapr, the trigger gets invoked on the already running function instance

This is my dapr.yaml file which I reference in command dapr run -f . -H 3500

version: 1
common:
  resourcesPath: ./components
apps:
  - appDirPath: ./functions-be
    appID: functionapp
    command: ["func", "host", "start"]
    appPort: 3001
    daprHTTPPort: 3500
    logLevel: ''
    enableApiLogging: true    ```

And this is my service bus component:

apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: servicebus spec: type: bindings.azure.servicebusqueues version: v1 metadata:

raorugan commented 6 months ago

May I know where is your function app running AKS or ACA or on-prem?