RPC_ERROR
Odoo Server Error
Occured on localhost:8069 on model fetchmail.server and id 19 on 2025-08-21 08:01:34 GMT
Traceback (most recent call last):
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\addons\mail\models\fetchmail.py", line 232, in fetch_mail
result, data = imap_server.search(None, '(UNSEEN)')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python3.11\Lib\imaplib.py", line 734, in search
typ, dat = self._simple_command(name, *criteria)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python3.11\Lib\imaplib.py", line 1230, in _simple_command
return self._command_complete(name, self._command(name, *args))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python3.11\Lib\imaplib.py", line 968, in _command
raise self.error("command %s illegal in state %s, "
imaplib.IMAP4.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\addons\mail\models\fetchmail.py", line 248, in fetch_mail
raise ValidationError(_("Couldn't get your emails. Check out the error message below for more info:\n%s", e)) from e
odoo.exceptions.ValidationError: 无法收到您的电子邮件。请查看下面的错误信息,了解更多信息:
command SEARCH illegal in state AUTH, only allowed in states SELECTED
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\http.py", line 1954, in _transactioning
return service_model.retrying(func, env=self.env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\service\model.py", line 137, in retrying
result = func()
^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\http.py", line 1921, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\http.py", line 2168, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\addons\base\models\ir_http.py", line 330, in _dispatch
result = endpoint(**request.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\http.py", line 728, in route_wrapper
result = endpoint(self, *args, **params_ok)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\addons\web\controllers\dataset.py", line 40, in call_button
action = call_kw(request.env[model], method, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\api.py", line 517, in call_kw
result = getattr(recs, name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\odoo18\odoo_18-master\odoo_18-master\odoo\addons\mail\models\fetchmail.py", line 254, in fetch_mail
imap_server.close()
File "D:\python3.11\Lib\imaplib.py", line 475, in close
typ, dat = self._simple_command('CLOSE')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python3.11\Lib\imaplib.py", line 1230, in _simple_command
return self._command_complete(name, self._command(name, *args))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python3.11\Lib\imaplib.py", line 968, in _command
raise self.error("command %s illegal in state %s, "
imaplib.IMAP4.error: command CLOSE illegal in state AUTH, only allowed in states SELECTED
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (http://localhost:8069/web/assets/4a61b22/web.assets_web_dark.min.js:3056:163)
at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/4a61b22/web.assets_web_dark.min.js:3061:13)