Closed cgapu closed 1 year ago
Can you show with the nats
cli output with --trace.
In general you cant have stream subject >
and I think that's what the problem is, you need to set specific subject spaces for streams and your subjects shouldnt overlap with your API subjects like $JS.>
If I create a stream with a subject other than ">", this error doesn't reappear.
18:35:05 >>> $JS.API.STREAM.INFO.test null
18:35:05 <<< $JS.API.STREAM.INFO.test {"stream":"test", "seq":48}
18:35:05 >>> $JS.API.STREAM.NAMES {"offset":0}
18:35:05 <<< $JS.API.STREAM.NAMES {"stream":"test", "seq":52}
nats: error: could not pick a Stream to operate on: server response is not a valid "io.nats.jetstream.api.v1.stream_names_response" message: /type: value must be "io.nats.jetstream.api.v1.stream_names_response"
yes, you cant have a stream with subject >
, thats the cause.
Versions of
nats-server
and affected client libraries used:nats server info:
nats --version
OS/Container environment:
nats server installed via helm, os info:
20.04.1-Ubuntu, x86_64
Steps or code to reproduce the issue:
nats stream info test
Options:
Limits:
Maximum Per Subject: unlimited Maximum Bytes: unlimited Maximum Age: unlimited Maximum Message Size: unlimited Maximum Consumers: unlimited
State:
Number of Subjects: 7
nats: error: could not pick a Stream to operate on: server response is not a valid "io.nats.jetstream.api.v1.stream_names_response" message: /type: value must be "io.nats.jetstream.api.v1.stream_names_response"