Skip to content

Azure service bus not working in CAP version 3.0 #483

@eheinz57

Description

@eheinz57

We've been developing using your library for months now and we haven't seen this error as of yet.
After upgrading to v3, we are now receiving this error below for all subscribers:

�[41m�[30mfail�[39m�[22m�[49m: DotNetCore.CAP.Internal.ConsumerRegister[0]
AzureServiceBus subscriber received an error. --> - Endpoint: XXXXX.servicebus.windows.net
- Entity Path: cap/Subscriptions/Client.v1
- Executing Action: UserCallback
- Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetCore.CAP.AzureServiceBus.AzureServiceBusConsumerClient.<>c.b__20_1(KeyValuePair2 y) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector)
at DotNetCore.CAP.AzureServiceBus.AzureServiceBusConsumerClient.OnConsumerReceived(Message message, CancellationToken token)
at Microsoft.Azure.ServiceBus.MessageReceivePump.MessageDispatchTask(Message message)

We are using Sql, EF, and Azure service bus. SQL shows the published message as successful, but the received table never shows an entry.

The Client.v1 subscription ends up having a deadletter mesage in the queue.

Any ideas on what I can do to troubleshoot further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions