Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More verbose if stream not created error #23

Open
earthpyy opened this issue Jun 30, 2023 · 0 comments
Open

More verbose if stream not created error #23

earthpyy opened this issue Jun 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@earthpyy
Copy link
Member

Current error:

Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Command.nats_coroutine() done, defined at /usr/local/lib/python3.8/site-packages/nats_client/management/commands/nats_listener.py:60> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/nats_client/management/commands/nats_listener.py", line 118, in nats_coroutine
    psub = await self.js.pull_subscribe(
  File "/usr/local/lib/python3.8/site-packages/nats/js/client.py", line 376, in pull_subscribe
    stream = await self._jsm.find_stream_name_by_subject(subject)
  File "/usr/local/lib/python3.8/site-packages/nats/js/manager.py", line 62, in find_stream_name_by_subject
    return info['streams'][0]
TypeError: 'NoneType' object is not subscriptable
@earthpyy earthpyy added the enhancement New feature or request label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant