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

Unexpected error while sitting idle() - command: IDLE => socket error: <class 'OSError'> - Too many read 0 #8

Open
3rock618 opened this issue Feb 20, 2019 · 0 comments

Comments

@3rock618
Copy link

3rock618 commented Feb 20, 2019

Could this be related to too many IDLE calls in a session? My script waits for an email, reads/parses, and then goes back IDLE. This is the second time this error has happened. It happens somewhere around 12-15 hours since first connecting.

Traceback (most recent call last):
  File "paper_trader.py", line 303, in <module>
    try: run()
  File "paper_trader.py", line 300, in run
    gm_set_idle()
  File "paper_trader.py", line 141, in gm_set_idle
    gm.idle()
  File "/home/ubuntu/.local/lib/python3.7/site-packages/imaplib2/imaplib2.py", line 839, in idle
    return self._simple_command(name, **kw)
  File "/home/ubuntu/.local/lib/python3.7/site-packages/imaplib2/imaplib2.py", line 1643, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/home/ubuntu/.local/lib/python3.7/site-packages/imaplib2/imaplib2.py", line 1396, in _command_complete
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
  File "/home/ubuntu/.local/lib/python3.7/site-packages/imaplib2/imaplib2.py", line 189, in get_response
    raise typ(exc_fmt % str(val))
imaplib2.imaplib2.IMAP4.abort: command: IDLE => socket error: <class 'OSError'> - Too many read 0
> /home/ubuntu/.local/lib/python3.7/site-packages/imaplib2/imaplib2.py(189)get_response()
-> raise typ(exc_fmt % str(val))
@3rock618 3rock618 changed the title Unexpected error while sitting idle() - socket error: <class 'OSError'> - Too many read 0 Unexpected error while sitting idle() - command: IDLE => socket error: <class 'OSError'> - Too many read 0 Feb 20, 2019
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