diff --git a/nats/js/client.py b/nats/js/client.py index 078c2d81b..063c60ce5 100644 --- a/nats/js/client.py +++ b/nats/js/client.py @@ -303,7 +303,7 @@ async def subscribe_bind( if cb and not manual_ack: cb = self._auto_ack_callback(cb) if config.deliver_subject is None: - config.deliver_subject = self._nc.new_inbox() + raise TypeError("config.deliver_subject is required") sub = await self._nc.subscribe( subject=config.deliver_subject, queue=config.deliver_group or "",