Repeating Error Log

It’s not effecting my ability to use ERPNext at all but every five minutes I get a new Error Log abd I am pretty sure it has something to do with my email service but I don’t know where I should begin to stop this error from occurring.

My ERP server is a standalone bare metal at home on Ubuntu and my email domain is hosted through Google Workspace.

Here is the Traceback code from the error log:

Traceback (most recent call last):
File “/usr/lib/python3.8/imaplib.py”, line 1022, in _command_complete
typ, data = self._get_tagged_response(tag, expect_bye=logout)
File “/usr/lib/python3.8/imaplib.py”, line 1148, in _get_tagged_response
self._get_response()
File “/usr/lib/python3.8/imaplib.py”, line 1050, in _get_response
resp = self._get_line()
File “/usr/lib/python3.8/imaplib.py”, line 1158, in _get_line
line = self.readline()
File “/usr/lib/python3.8/imaplib.py”, line 316, in readline
raise self.error(“got more than %d bytes” % _MAXLINE)
imaplib.IMAP4.error: got more than 20480 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/receive.py”, line 111, in get_messages
uid_list = email_list = self.get_new_mails()
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/receive.py”, line 176, in get_new_mails
response, message = self.imap.uid(‘search’, None, self.settings.email_sync_rule)
File “/usr/lib/python3.8/imaplib.py”, line 881, in uid
typ, dat = self._simple_command(name, command, *args)
File “/usr/lib/python3.8/imaplib.py”, line 1205, in _simple_command
return self._command_complete(name, self._command(name, *args))
File “/usr/lib/python3.8/imaplib.py”, line 1026, in _command_complete
raise self.error(‘command: %s => %s’ % (name, val))
imaplib.IMAP4.error: command: UID => got more than 20480 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/receive.py”, line 144, in get_messages
if self.has_login_limit_exceeded(e):
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/receive.py”, line 288, in has_login_limit_exceeded
return “-ERR Exceeded the login limit” in strip(cstr(e.message))
AttributeError: ‘error’ object has no attribute ‘message’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.8/imaplib.py”, line 1022, in _command_complete
typ, data = self._get_tagged_response(tag, expect_bye=logout)
File “/usr/lib/python3.8/imaplib.py”, line 1148, in _get_tagged_response
self._get_response()
File “/usr/lib/python3.8/imaplib.py”, line 1050, in _get_response
resp = self._get_line()
File “/usr/lib/python3.8/imaplib.py”, line 1158, in _get_line
line = self.readline()
File “/usr/lib/python3.8/imaplib.py”, line 316, in readline
raise self.error(“got more than %d bytes” % _MAXLINE)
imaplib.IMAP4.error: got more than 20480 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/utils/background_jobs.py”, line 100, in execute_job
method(**kwargs)
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 821, in pull_from_email_account
email_account.receive()
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 294, in receive
emails = email_server.get_messages()
File “/home/elvisglazier/myfrappe/apps/frappe/frappe/email/receive.py”, line 153, in get_messages
self.imap.logout()
File “/usr/lib/python3.8/imaplib.py”, line 633, in logout
typ, dat = self._simple_command(‘LOGOUT’)
File “/usr/lib/python3.8/imaplib.py”, line 1205, in _simple_command
return self._command_complete(name, self._command(name, *args))
File “/usr/lib/python3.8/imaplib.py”, line 1026, in _command_complete
raise self.error(‘command: %s => %s’ % (name, val))
imaplib.IMAP4.error: command: LOGOUT => got more than 20480 bytes