Hello,
We use refinitiv-dataplatform=1.0.0a7 to get real-time prices. From time to time I see an error in my logs:
2021-03-10 23:37:21,537 - Session session.platform - Thread 140598623328000 | WebSocket 0 - OMM Protocol - pricing WebSocket error occurred for web socket client 1 (login id 570) : Connection is already closed. Exception in callback OMMStream._on_reconnect(<FailoverStat...verStarted: 0>, 'Open', 'Suspect', 'FailoverStarted', 'Streaming co...g to recover.')() handle: <Handle OMMStream._on_reconnect(<FailoverStat...verStarted: 0>, 'Open', 'Suspect', 'FailoverStarted', 'Streaming co...g to recover.')()> Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/nest_asyncio.py", line 150, in run ctx.run(self._callback, *self._args) File "/usr/local/lib/python3.8/site-packages/refinitiv/dataplatform/delivery/stream/omm_stream.py", line 237, in _on_reconnect self._on_status(status_message) File "/usr/local/lib/python3.8/site-packages/refinitiv/dataplatform/delivery/stream/omm_item_stream.py", line 334, in _on_status super()._on_status(status) File "/usr/local/lib/python3.8/site-packages/refinitiv/dataplatform/delivery/stream/omm_stream.py", line 284, in _on_status if new_status_code == 'Open': NameError: name 'new_status_code' is not defined
Why does it happen? And how to fix it?
OS: Debian GNU/Linux 10 (buster)