python-bittrex-websocket icon indicating copy to clipboard operation
python-bittrex-websocket copied to clipboard

Issue with IndexError after authenticate()

Open KevinTurnbull opened this issue 4 years ago • 1 comments

I'm not sure I understand how the solution was found here. I am having the same issue as this.

I've called authenticate with my key and secret; if I don't use authenticate (i.e. don't register for information about orders) then I don't get this crash. It also only sometimes crashes like this since it's only an infrequent crash. Thoughts?

  File "/code/market/sockets.py", line 61, in _connection_handler
    self.connection.conn.start()
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/_signalr.py", line 53, in start
    self.queue_handler()
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/_signalr.py", line 64, in queue_handler
    raise self.exception
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/_signalr.py", line 41, in wrapped_listener
    listener()
  File "/usr/local/lib/python3.6/dist-packages/signalr/transports/_ws_transport.py", line 42, in _receive
    self._handle_notification(notification)
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/_signalr.py", line 105, in _handle_notification
    self._connection.received.fire(**data)
  File "/usr/local/lib/python3.6/dist-packages/signalr/events/_events.py", line 15, in fire
    handler(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/websocket_client.py", line 298, in _on_debug
    self._is_query_invoke(kwargs)
  File "/usr/local/lib/python3.6/dist-packages/bittrex_websocket/websocket_client.py", line 302, in _is_query_invoke
    invoke = self.invokes[int(kwargs['I'])]['invoke']
IndexError: list index out of range

list index out of range

Originally posted by @KevinTurnbull in https://github.com/slazarov/python-bittrex-websocket/issues/77#issuecomment-599006190

KevinTurnbull avatar Mar 14 '20 03:03 KevinTurnbull

#77 is the original issue.

KevinTurnbull avatar Mar 14 '20 03:03 KevinTurnbull