Skip to content

Publish to service endpoint without reply subject causes panic #1511

@liamkinne

Description

@liamkinne

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

  1. Run any example service that calls .respond()
  2. Publish without a reply subject specified: nats pub test ""

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions