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
Doing publish of one message "f" to subject "subjecttest", that has no stream attached to it will result in an error:
Traceback (most recent call last):
File "/nats-testtools/venv/lib/python3.8/site-packages/nats/aio/client.py", line 1027, in _request_new_style
msg = await asyncio.wait_for(future, timeout)
File "/usr/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./nats-testtools/write.py", line 25, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "./nats-testtools/write.py", line 19, in main
await js.publish("subjecttest", sys.argv[1].encode("UTF-8"))
File "/nats-testtools/venv/lib/python3.8/site-packages/nats/js/client.py", line 125, in publish
msg = await self._nc.request(
File "/nats-testtools/venv/lib/python3.8/site-packages/nats/aio/client.py", line 991, in request
msg = await self._request_new_style(
File "/nats-testtools/venv/lib/python3.8/site-packages/nats/aio/client.py", line 1040, in _request_new_style
raise errors.TimeoutError
nats.errors.TimeoutError: nats: timeout
In NATS server logs, in debug/trace enabled mode, we have:
In JetStream mode, when a message has been published to subject without registered stream, it should instead fail with the explicit error: NoStreamFound.
Server and client version
nats server 1.1.7
nats python client 2.7.0
Host environment
NATS server helm chart deployed to Kubernetes cluster
Python 3.8
Observed behavior
Doing publish of one message "f" to subject "subjecttest", that has no stream attached to it will result in an error:
In NATS server logs, in debug/trace enabled mode, we have:
Expected behavior
In JetStream mode, when a message has been published to subject without registered stream, it should instead fail with the explicit error:
NoStreamFound
.Server and client version
nats server 1.1.7
nats python client 2.7.0
Host environment
NATS server helm chart deployed to Kubernetes cluster
Python 3.8
Steps to reproduce
The text was updated successfully, but these errors were encountered: