Skip to content

[SUB-90011] Subject does not match consumer configuration filter. #715

Answered by scottf
Hulkstance asked this question in Q&A
Discussion options

You must be logged in to vote
  1. When you create the consumer here, the consumer filter subject will be blank which is equivalent to > . This does not match the subscribe subject of PERSISTENCE.*. Add WithFilterSubject(subject) to your consumer builder.
        var consumerConfiguration = ConsumerConfiguration.Builder()
            .WithDurable(durable)
            .WithDeliverSubject(deliverSubject)
            .Build();
        JetStreamManagement.AddOrUpdateConsumer(stream, consumerConfiguration);

        var so = PushSubscribeOptions.BindTo(stream, durable);
        var subscription = JetStream.PushSubscribeAsync(
            subject,
            (_, e) => onMessageArrived(e.Message),
            true,
           …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hulkstance
Comment options

Answer selected by scottf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants