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
var config = new StreamConfig(name: "test", subjects: new[] {
"a.b.c"
});
_natsJSStream = await _natsJSContext.CreateStreamAsync(config);
var consumer = await _natsJSStream.CreateOrUpdateConsumerAsync(new ConsumerConfig()
{
FilterSubject = "a.b.c"
});
It works:
var config = new StreamConfig(name: "test", subjects: new[] {
"a_b_c"
});
_natsJSStream = await _natsJSContext.CreateStreamAsync(config);
var consumer = await _natsJSStream.CreateOrUpdateConsumerAsync(new ConsumerConfig()
{
FilterSubject = "a_b_c"
});
The text was updated successfully, but these errors were encountered:
eddyyuen
changed the title
JetStream CreateOrUpdateConsumerAsync throw NATS.Client.JetStream.NatsJSApiException if ConsumerConfig.FilterSubject contains '.'
JetStream CreateOrUpdateConsumerAsync throw NatsJSApiException if FilterSubject contains '.'
Mar 20, 2024
Admittedly there is a little complication due to server support for legacy consumer configurations as consumer implementation evolved and we might not be handling that well to give friendly errors.
Having said all that, I might be missing something here that you don't want to name your consumer for some reason. What sort of consumer are you trying to create?
Admittedly there is a little complication due to server support for legacy consumer configurations as consumer implementation evolved and we might not be handling that well to give friendly errors.
Having said all that, I might be missing something here that you don't want to name your consumer for some reason. What sort of consumer are you trying to create?
Thanks! I am new to NATS , and I just forgot to name my consumer.
Observed behavior
When my code like this
Throw Exception:
If we use this code ,it works
Expected behavior
FilterSubject should be able to input any character
Server and client version
nats-server: v2.10.11 (widows amd64)
NATS.Net 2.1.3
Host environment
No response
Steps to reproduce
This throw Exception
It works:
The text was updated successfully, but these errors were encountered: