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

Failure parsing valid response when working with multiple clients #106

Open
kosty opened this issue Jun 28, 2024 · 0 comments
Open

Failure parsing valid response when working with multiple clients #106

kosty opened this issue Jun 28, 2024 · 0 comments

Comments

@kosty
Copy link

kosty commented Jun 28, 2024

My setup is somewhat strange, I have two different clients periodically polling same folder for messages from two different senders. Both clients are instantiated inside the same process. When email arrives from either of the senders this shows up in logs. Removing either of clients makes the error go away

2024-06-28 12:18:16,546 [ERROR] [/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py:1821] [default_exception_handler] Fatal error on SSL protocol
protocol: <asyncio.sslproto.SSLProtocol object at 0x105f19fa0>
transport: <_SelectorSocketTransport closing fd=11 read=idle write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/sslproto.py", line 737, in _do_read
    self._do_read__copied()
  File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/sslproto.py", line 797, in _do_read__copied
    self._app_protocol.data_received(first)
  File "/path/to/venv/lib/python3.12/site-packages/aioimaplib/aioimaplib.py", line 346, in data_received
    self._handle_responses(self.incomplete_line + d, self._handle_line, self.current_command)
  File "/path/to/venv/lib/python3.12/site-packages/aioimaplib/aioimaplib.py", line 387, in _handle_responses
    self._handle_responses(tail, line_handler)
  File "/path/to/venv/lib/python3.12/site-packages/aioimaplib/aioimaplib.py", line 375, in _handle_responses
    cmd = line_handler(line, current_cmd)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/venv/lib/python3.12/site-packages/aioimaplib/aioimaplib.py", line 398, in _handle_line
    self._response_done(line)
  File "/path/to/venv/lib/python3.12/site-packages/aioimaplib/aioimaplib.py", line 667, in _response_done
    raise Abort('unexpected tagged (%s) response: %s' % (tag, response))
aioimaplib.aioimaplib.Abort: unexpected tagged (b'CJBF4') response: b'OK SEARCH completed (Success)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant