Hi, There could be a few things, like Firewall or connection string. what are you using to send messages to the hub? I used the add on for Visual Studio Code (https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit)
Do you have the latest updates for Visual Studio 2019. that has happened to me and worked fine after the upgrade.
According to this recent document (https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot-trigger?tabs=csharp) it is suggesting to use the azure event hub binding for IOT
But I used the template from Visual Studio (as mentioned on this article: https://www.c-sharpcorner.com/article/iothubtrigger-azure-function-and-azure-iot-hub/) and seem to work
The conn string for the trigger function (the one that goes in the local.settings.json )
is this one here:
**Debugging works fine. Received the message that I've sent **
The only problem that i had initially is the firewall. I don't see the same error, but if it is not the connection string, try to shut down the firewall for a min only to test and confirm (https://youcandowithazure.blog/2022/02/27/code-and-test-azure-service-bus-and-azure-event-hub-triggers-locally/)