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

consumer _start_event_sink sometimes raises error #320

Open
1 of 2 tasks
deichmab-draeger opened this issue Jan 24, 2024 · 0 comments
Open
1 of 2 tasks

consumer _start_event_sink sometimes raises error #320

deichmab-draeger opened this issue Jan 24, 2024 · 0 comments
Labels
bug Something isn't working v2 Version 2 is affected

Comments

@deichmab-draeger
Copy link
Member

deichmab-draeger commented Jan 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

error is:

File "C:\develop\sdcsim\SDCSimulator\GuiTestClient\ClientTabs\start_tab.py", line 594, in connect_client
    self.parent.client.start_all(not_subscribed_actions=const.SUBSCRIPTIONS[self.subriptionType.currentText()],
  File "C:\develop\sdcsim\.sdcsim_venv_AMD64_3.9.6\lib\site-packages\sdc11073\consumer\consumerimpl.py", line 458, in start_all
    self._start_event_sink(shared_http_server)
  File "C:\develop\sdcsim\.sdcsim_venv_AMD64_3.9.6\lib\site-packages\sdc11073\consumer\consumerimpl.py", line 651, in _start_event_sink
    self._http_server.dispatcher.register_instance(self.path_prefix, self._msg_converter)
  File "C:\develop\sdcsim\.sdcsim_venv_AMD64_3.9.6\lib\site-packages\sdc11073\httpserver\httpserverimpl.py", line 142, in dispatcher
    return self.httpd.dispatcher
AttributeError: 'NoneType' object has no attribute 'dispatcher'

Expected Behavior

no exception

Minimal Reproducible Example

No response

Solution proposal

No response

Python Version

3.9

Operating system

Windows

Sdc11073 Version

2.0.0a6

Link to sdc11073 Logs

No response

Further Information

Al sleep of one second before calling register_instance fixed the problem, but that is a bad solution.

Participation

  • I am willing to submit a pull request to fix this bug.
@deichmab-draeger deichmab-draeger added bug Something isn't working v2 Version 2 is affected labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2 Version 2 is affected
Projects
None yet
Development

No branches or pull requests

1 participant