Untitled
unknown
plain_text
a year ago
4.5 kB
4
Indexable
Never
RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/mail/models/mail_mail.py", line 405, in send smtp_session = self.env['ir.mail_server'].connect(mail_server_id=mail_server_id, smtp_from=smtp_from) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/base/models/ir_mail_server.py", line 409, in connect mail_server._smtp_login(connection, smtp_user, smtp_password or '') File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/google_gmail/models/ir_mail_server.py", line 74, in _smtp_login auth_string = self._generate_oauth2_string(smtp_user, self.google_gmail_refresh_token) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/google_gmail/models/google_gmail_mixin.py", line 151, in _generate_oauth2_string access_token, expiration = self._fetch_gmail_access_token(self.google_gmail_refresh_token) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/google_gmail/models/google_gmail_mixin.py", line 99, in _fetch_gmail_access_token response = self._fetch_gmail_token('refresh_token', refresh_token=refresh_token) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/google_gmail/models/google_gmail_mixin.py", line 133, in _fetch_gmail_token raise UserError(_('An error occurred when fetching the access token.')) odoo.exceptions.UserError: An error occurred when fetching the access token. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/http.py", line 1584, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/service/model.py", line 133, in retrying result = func() File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/http.py", line 1611, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/http.py", line 1815, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/web/controllers/dataset.py", line 46, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/api.py", line 461, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/api.py", line 448, in _call_kw_multi result = method(recs, *args, **kwargs) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/auth_signup/models/res_users.py", line 203, in action_reset_password template.send_mail(user.id, force_send=force_send, raise_exception=True, email_values=email_values) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/mail/models/mail_template.py", line 402, in send_mail mail.send(raise_exception=raise_exception) File "/opt/bitnami/odoo/lib/odoo-16.0.post20230815-py3.10.egg/odoo/addons/mail/models/mail_mail.py", line 410, in send raise MailDeliveryException(_('Unable to connect to SMTP Server'), exc) odoo.addons.base.models.ir_mail_server.MailDeliveryException: ('Unable to connect to SMTP Server', UserError('An error occurred when fetching the access token.')) The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (https://odoo.exist.com/web/assets/807-be0872b/web.assets_backend.min.js:992:163) at XMLHttpRequest.<anonymous> (https://odoo.exist.com/web/assets/807-be0872b/web.assets_backend.min.js:1000:13)