Skip to content

ProcessEventsAsync Handler not set #430

@Selekena

Description

@Selekena

We are setting up our .Net app with netherite against a storage account and eventhub. We get an exception when our app attempts to start.

System.InvalidOperationException
HResult=0x80131509
Message=Cannot begin processing without the ProcessEventAsync handler set.
Source=Azure.Messaging.EventHubs.Processor
StackTrace:
at Azure.Messaging.EventHubs.EventProcessorClient.d__73.MoveNext()
at Azure.Messaging.EventHubs.EventProcessorClient.d__54.MoveNext()
at DurableTask.Netherite.EventHubsTransport.EventHubsPartitionManager.d__16.MoveNext()
at DurableTask.Netherite.EventHubsTransport.EventHubsTransport.d__39.MoveNext()
at DurableTask.Netherite.NetheriteOrchestrationService.d__94.MoveNext()
at DurableTask.Netherite.NetheriteOrchestrationService.<>c__DisplayClass92_0`1.<g__conditionalTransition|0>d.MoveNext()
at DurableTask.Netherite.NetheriteOrchestrationService.d__91.MoveNext()
at DurableTask.Core.TaskHubWorker.d__32.MoveNext()
at Microsoft.Azure.EdgeProvisioning.Common.Workflow.Engine.WorkflowWorker.d__10.MoveNext()
at Microsoft.Azure.EdgeProvisioning.Common.Workflow.Engine.WorkflowEngine.d__5.MoveNext()
at Microsoft.Extensions.Hosting.Internal.Host.d__12.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d__4.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d__4.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at Microsoft.AspNetCore.Builder.WebApplication.Run(String url)
at Program.


This exception was originally thrown at this call stack:
[External Code]
Program.$(string[]) in Program.cs

We supposed (and I get this from reading the source here) that this should be handled by Netherite already. Our other apps did not need to register one. Is this a netherite issue or are not passing something into the Taskhubworker startAsync?

Metadata

Metadata

Labels

P1Priority 1bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions