OCA / rest-framework

GNU Affero General Public License v3.0
307 stars 297 forks source link

NameError: name 'Validator' is not defined #338

Closed tranhieu9669 closed 10 months ago

tranhieu9669 commented 1 year ago

File "/opt/odoo/odoo11-custom-addons/base_rest/http.py", line 160, in _handle_exception return super(HttpRestRequest, self)._handle_exception(exception) File "/opt/odoo/odoo11/odoo/http.py", line 773, in _handle_exception return super(HttpRequest, self)._handle_exception(exception) File "/opt/odoo/odoo11/odoo/http.py", line 312, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_http.py", line 208, in _dispatch result = request.dispatch() File "/opt/odoo/odoo11/odoo/http.py", line 832, in dispatch r = self._call_function(self.params) File "/opt/odoo/odoo11/odoo/http.py", line 344, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper return f(dbname, args, kwargs) File "/opt/odoo/odoo11/odoo/http.py", line 337, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo/odoo11/odoo/http.py", line 939, in call return self.method(*args, *kw) File "/opt/odoo/odoo11/odoo/http.py", line 517, in response_wrap response = f(args, kw) File "/opt/odoo/odoo11-custom-addons/base_rest/controllers/main.py", line 78, in modify params) File "/opt/odoo/odoo11-custom-addons/base_rest/controllers/main.py", line 223, in _process_method result = service.dispatch(method_name, _id, params) File "/opt/odoo/odoo11-custom-addons/base_rest/components/service.py", line 177, in dispatch secure_params = self._secure_input(func, params) File "/opt/odoo/odoo11-custom-addons/base_rest/components/service.py", line 125, in _secure_input v = Validator(schema, purge_unknown=True) NameError: name 'Validator' is not defined

github-actions[bot] commented 11 months ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.