Closed ladeak closed 11 months ago
I resolved the issue by sending AmqpData instead of AmqpValue after finding: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/src/Amqp/AmqpAnnotatedMessageExtensions.cs#L151
[EventHubTrigger]
throws error when handling IoTHub messagesRepro steps
Migrating an in-process C# Azure Function to isolated worker process and to .NET 8.
Following documentation: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cfunctionsv2%2Cextensionv5&pivots=programming-language-csharp
and
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cfunctionsv2%2Cextensionv5&pivots=programming-language-csharp
Expected behavior
Receive the message.
Actual behavior
Regardless I use batched non-batched,
string
,byte[]
, orAzure.Messaging.EventHubs.EventData
I get the following errors on the output.The message is sent by an IotDevice, which has not changed behavior.
Related information
Dependencies:
Azure Functions version:
I am testing on my dev machine.
Note, that previously with the in-proc binding using
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="6.0.2" />
the function was working.