Observed behavior
Publishing to a subject used by a service endpoint causes the service to panic when running .respond().
See: https://github.com/nats-io/nats.rs/blob/4417346a772c365fe8f7b31d595c61dce190a007/async-nats/src/service/mod.rs#L757C9-L757C57
Expected behavior
The respond call should return an error to be handled by the caller.
Server and client version
NATS server 2.10
async-nats 0.45.0
Host environment
N/A
Steps to reproduce
- Run any example service that calls
.respond()
- Publish without a reply subject specified:
nats pub test ""