Score:0

Google cloud : ConnectionResetError: [Errno 104] Connection reset by pee

cn flag
raceback (most recent call last):
  File "main.py", line 2, in <module>
    from BankEmails.ProvidentCredit import ProvidentCredit
  File "/home/mayank/code/python/webapps-google/reademail/code/BankEmails/ProvidentCredit.py", line 1, in <module>
    from Common.GetEmailFromGoogle import GetEmailFromGoogle
  File "/home/mayank/code/python/webapps-google/reademail/code/Common/GetEmailFromGoogle.py", line 20, in <module>
    mail = imaplib.IMAP4_SSL(gmail_host)
  File "/usr/lib/python3.6/imaplib.py", line 1288, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python3.6/imaplib.py", line 198, in __init__
    self.open(host, port)
  File "/usr/lib/python3.6/imaplib.py", line 1301, in open
    IMAP4.open(self, host, port)
  File "/usr/lib/python3.6/imaplib.py", line 299, in open
    self.sock = self._create_socket()
  File "/usr/lib/python3.6/imaplib.py", line 1293, in _create_socket
    server_hostname=self.host)
  File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by pee
John Hanley avatar
cn flag
1) Edit your question and show the code. 2) You are connecting using SMTP. Which port (465, 587) and which encryption mode (ssl, tls) does the provider require you to use? The error message does not show these details - provide them in your question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.