imamplib.IMAP4.abort:socket error: EOF
See original GitHub issueSeeing this in my log a few times:
2020-02-26 22:02:45 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.mail_ups_delivered fails
Traceback (most recent call last):
File "/usr/local/lib/python3.7/imaplib.py", line 1019, in _command_complete
typ, data = self._get_tagged_response(tag)
File "/usr/local/lib/python3.7/imaplib.py", line 1139, in _get_tagged_response
self._get_response()
File "/usr/local/lib/python3.7/imaplib.py", line 1047, in _get_response
resp = self._get_line()
File "/usr/local/lib/python3.7/imaplib.py", line 1151, in _get_line
raise self.abort('socket error: EOF')
imaplib.IMAP4.abort: socket error: EOF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mail_and_packages/sensor.py", line 623, in update
self.data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/mail_and_packages/sensor.py", line 114, in update
selectfolder(account, self._folder)
File "/config/custom_components/mail_and_packages/sensor.py", line 795, in selectfolder
rv, mailboxes = account.list()
File "/usr/local/lib/python3.7/imaplib.py", line 585, in list
typ, dat = self._simple_command(name, directory, pattern)
File "/usr/local/lib/python3.7/imaplib.py", line 1196, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/local/lib/python3.7/imaplib.py", line 1021, in _command_complete
raise self.abort('command: %s => %s' % (name, val))
imaplib.IMAP4.abort: command: LIST => socket error: EOF
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
EOF Error in Imaplib - python - Stack Overflow
You need to reconnect by re-initialize class, not just login, using conn = imaplib.IMAP4_SSL("imap.gmail.com", 993). A complete example:
Read more >How to deal with imaplib.abort exception on imap_tools? #96
... in _get_line raise self.abort('socket error: EOF') imaplib.abort: socket error: EOF. I use imap-tools v0.37 with the function :.
Read more >Error log - Want to know the meaning of this error - User Forum
But during the mail pull request service capability process, the socket EOF means the mail server process failed to respond. Best check and ......
Read more >Infinite loop in imaplib.IMAP4_SSL when used with Gmail
Add this line in IMAP4_SSL if not char: raise self.abort('socket error: EOF') complete method: def readline(self): """Read line from remote.
Read more >imaplib — IMAPClient 2.1.0 documentation
PROTOCOL_VERSION = version return raise self.error('server not IMAP4 ... if not line: raise self.abort('socket error: EOF') # Protocol mandates all lines ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I didn’t have any errors in my logs last night, but I will add more error catching and placed this on the ‘todo’ list 😃
Haven’t seen this bug since so I’m going to close.