Open hexesisb opened 1 year ago
MarkupError: closing tag
'[/\x00\x00\x00\x00\x00\x00\x00\x00\x01\x89c\xb6hA\x00\x00\x01\x89c\xb6hA\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x01\xac\x0e\x00\x00\x00\x01\x9e\x
0e{"data": {"snapshot": true, "bi...'))]' at position 2474 doesn't match any open tag
[18:57:30] ERROR Unexpected exception in AIOKafkaConnection conn.py:385
╭────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────╮
│ /home/username/Folder/aiohttp/aiohttp/lib/python3.10/site-packages/aiokafka/conn.py:382 in _on_read_task_error │
│ │
│ 379 │ │ │ return │
│ 380 │ │ │
│ 381 │ │ try: │
│ ❱ 382 │ │ │ read_task.result() │
│ 383 │ │ except Exception as exc: │
│ 384 │ │ │ if not isinstance(exc, (OSError, EOFError, ConnectionError)): │
│ 385 │ │ │ │ cls.log.exception("Unexpected exception in AIOKafkaConnection") │
│ │
│ /home/username/Folder/aiohttp/aiohttp/lib/python3.10/site-packages/aiokafka/conn.py:533 in _read │
│ │
│ 530 │ │ │ self = self_ref() │
│ 531 │ │ │ if self is None: │
│ 532 │ │ │ │ return │
│ ❱ 533 │ │ │ self._handle_frame(resp) │
│ 534 │ │ │ del self │
│ 535 │ │
│ 536 │ def _handle_frame(self, resp): │
│ │
│ /home/username/Folder/aiohttp/aiohttp/lib/python3.10/site-packages/aiokafka/conn.py:537 in _handle_frame │
│ │
│ 534 │ │ │ del self │
│ 535 │ │
│ 536 │ def _handle_frame(self, resp): │
│ ❱ 537 │ │ correlation_id, resp_type, fut = self._requests[0] │
│ 538 │ │ │
│ 539 │ │ if correlation_id is None: # Is a SASL packet, just pass it though │
│ 540 │ │ │ if not fut.done(): │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
**IndexError: deque index out of range** `
Which index? How to reset it?
Which index?
self._requests
is a deque
, so self._requests[0]
raises IndexError
when it's empty.
Which index?
self._requests
is adeque
, soself._requests[0]
raisesIndexError
when it's empty.
How is it happening? I send more than 15k messages, after that I've got this error. And it's happening each time. What should I do to solve this issue?
Also I can't understand how to reconnect or how to check is connection is alive?
Describe the bug After some number of producer.send_and_wait(topic,message) (it could be 15k successfully sended messages), I've got:
Environment (please complete the following information):
Reproducible example