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 publishing a NATS message through nats.go/jetstream.Jetstream.PublishMsg with a newline char at the end of the subject, the method returns with a context deadline exceeded. NGS reports a "Protocol Violation" and seems to disconnect the client.
The nats cli seems to have a similar problem.
Expected behavior
An invalid subject input should not result in a protocol violation.
The SDK client should return an early error about invalid subject.
Server and client version
Server: NGS
Clients:
github.com/nats-io/nats.go v1.39.1
nats cli 0.1.5
Host environment
No response
Steps to reproduce
nats pub "test
" "test"
Results in
16:02:51 Disconnected due to: EOF, will attempt reconnect
16:02:51 Published 4 bytes to "test\n"
16:02:51 Reconnected [tls://x.x.x.x:4222]
The text was updated successfully, but these errors were encountered:
Observed behavior
Hello,
when publishing a NATS message through nats.go/jetstream.Jetstream.PublishMsg with a newline char at the end of the subject, the method returns with a context deadline exceeded. NGS reports a "Protocol Violation" and seems to disconnect the client.
The nats cli seems to have a similar problem.
Expected behavior
An invalid subject input should not result in a protocol violation.
The SDK client should return an early error about invalid subject.
Server and client version
Server: NGS
Clients:
Host environment
No response
Steps to reproduce
Results in
The text was updated successfully, but these errors were encountered: