You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ListenForMessagesFromExternalDatabaseTable option, MoveToErrorQueue() on exception causes NotSupportedException.
To Reproduce
Steps to reproduce the behavior:
Setup a service to use ListenForMessagesFromExternalDatabaseTable option.
Setup a message handler to raise an exception
Configure the message handler like this:
public static void Configure(HandlerChain chain)
{
chain.OnException<Exception>().MoveToErrorQueue();
}
Insert message data into the external table
Make sure that the message is processed
Observe service output
Error Message:
System.NotSupportedException: Specified method is not supported.
at Wolverine.RDBMS.Transport.ExternalMessageTable.CreateSender(IWolverineRuntime runtime) in /home/runner/work/wolverine/wolverine/src/Persistence/Wolverine.RDBMS/Transport/ExternalMessageTable.cs:line 41
at Wolverine.Configuration.Endpoint.StartSending(IWolverineRuntime runtime, Uri replyUri) in /home/runner/work/wolverine/wolverine/src/Wolverine/Configuration/Endpoint.cs:line 426
at Wolverine.Configuration.EndpointCollection.buildSendingAgent(Uri uri, Action`1 configureNewEndpoint) in /home/runner/work/wolverine/wolverine/src/Wolverine/Configuration/EndpointCollection.cs:line 324
at Wolverine.Configuration.EndpointCollection.GetOrBuildSendingAgent(Uri address, Action`1 configureNewEndpoint) in /home/runner/work/wolverine/wolverine/src/Wolverine/Configuration/EndpointCollection.cs:line 138
at Wolverine.Runtime.Routing.MessageRouterBase`1.RouteForUri(Uri destination) in /home/runner/work/wolverine/wolverine/src/Wolverine/Runtime/Routing/MessageRouterBase.cs:line 90
at Wolverine.Runtime.Routing.MessageRouterBase`1.RouteToDestination(T message, Uri uri, DeliveryOptions options) in /home/runner/work/wolverine/wolverine/src/Wolverine/Runtime/Routing/MessageRouterBase.cs:line 79
at Wolverine.Runtime.Routing.MessageRouterBase`1.RouteToDestination(Object message, Uri uri, DeliveryOptions options) in /home/runner/work/wolverine/wolverine/src/Wolverine/Runtime/Routing/MessageRouterBase.cs:line 59
at Wolverine.Runtime.MessageContext.SendFailureAcknowledgementAsync(String failureDescription) in /home/runner/work/wolverine/wolverine/src/Wolverine/Runtime/MessageContext.cs:line 231
at Wolverine.ErrorHandling.MoveToErrorQueue.ExecuteAsync(IEnvelopeLifecycle lifecycle, IWolverineRuntime runtime, DateTimeOffset now, Activity activity) in /home/runner/work/wolverine/wolverine/src/Wolverine/ErrorHandling/MoveToErrorQueue.cs:line 34
at Wolverine.ErrorHandling.CompositeContinuation.ExecuteAsync(IEnvelopeLifecycle lifecycle, IWolverineRuntime runtime, DateTimeOffset now, Activity activity) in /home/runner/work/wolverine/wolverine/src/Wolverine/ErrorHandling/CompositeContinuation.cs:line 25
Expected behavior
MoveToErrorQueue() does not cause an exception
MoveToErrorQueue() moves the message/envelope to the dead letters table/queue
Environment
Desktop
Windows 11 Pro 23H2
Microsoft SQL Server Express (64-bit) Version 16.0.1135.2
and
Windows Server 2019 Standard (10.0)
Microsoft SQL Server Standard (64-bit) Version 15.0.4312.2
.Net 9
Wolverine 3.6.3
The text was updated successfully, but these errors were encountered:
When using the
ListenForMessagesFromExternalDatabaseTable
option,MoveToErrorQueue()
on exception causesNotSupportedException
.To Reproduce
Error Message:
Expected behavior
Environment
Desktop
Windows 11 Pro 23H2
Microsoft SQL Server Express (64-bit) Version 16.0.1135.2
and
Windows Server 2019 Standard (10.0)
Microsoft SQL Server Standard (64-bit) Version 15.0.4312.2
.Net 9
Wolverine 3.6.3
The text was updated successfully, but these errors were encountered: