connect icon indicating copy to clipboard operation
connect copied to clipboard

Bug: nats_jetstream input has a logic error in the stream check

Open maxarndt opened this issue 9 months ago • 0 comments

In nats_jetstream input processor, I cannot use the stream option without subject set.

Acording to the docs this should work:

https://github.com/benthosdev/benthos/blob/88c01d179d3aa4030795ac0f52459dd7a333284b/website/docs/components/inputs/nats_jetstream.md?plain=1#L190-L192

Reproduction

input:
  nats_jetstream:
    urls: [nats://srv:port]
    stream: "somestream"

Error:

ERRO Service closing due to: failed to init input path root.input: subject is empty @service=benthos

Solution

I'm going to open a PR. Hope this helps.

Edit: here it is #2577

maxarndt avatar May 10 '24 14:05 maxarndt