Skip to Content
Menu
This question has been flagged
1 Reply
11977 Views

2023-05-13 13:52:33,082 35077 ERROR dbodoo16 odoo.http: Exception during request handling. 
Traceback (most recent call last):
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http. py", line 1987, in __call__
response = request._serve_db()
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http . py", line 1583, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/service/model.py", line 134, in retrying
result = func()
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http.py", line 1611, in _serve_ir_http
ir_http._post_dispatch(response)
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/addons/base/models/ir_http.py", line 161, in _post_dispatch
request.dispatcher.post_dispatch(response)
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http.py", line 1679, in post_dispatch
self.request._save_session()
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http.py", line 1511, in _save_session
self.future_response.set_cookie('session_id', sess.sid, max_age=SESSION_LIFETIME, httponly=True)
File "/home/avril/PycharmProjects/odoo-16/odoo/odoo/http.py", line 1125, in set_cookie
werkzeug.Response.set_cookie(self, key, value=value, max_age=max_age, expires=expires, path=path, domain=domain, secure=secure, httponly=httponly, samesite=samesite)
File "/usr/local/lib/python3.8/dist-packages/werkzeug/sansio/response.py", line 258, in set_cookie
charset = self._charset if self._charset != "utf-8" else None
AttributeError: 'FutureResponse' object has no attribute '_charset'
2023-05-13 13:52:33,083 35077 INFO dbodoo16 werkzeug: 127.0.0.1 - - [13/May/2023 13:52:33] "GET /web/database/manager HTTP/1.1" 500 - 25 0.022 0.262


Avatar
Discard
Author

thanks problem solved with

sudo pip3 install Werkzeug==0.16.1 

Best Answer

You are using a newer version of werkzeug so the solution is to install the recommended version for Odoo 16 and python 3.8

You need to uninstall the current version and install 0.16.1 using below commands:

sudo pip3 uninstall werkzeug

sudo pip3 install werkzeug Werkzeug==0.16.1
Avatar
Discard
Related Posts Replies Views Activity
0
May 25
91
2
Apr 25
2346
1
Feb 25
719
2
Feb 25
1220
2
Jan 25
1334