hi everyone, I am working in odoo 15, and for some days I am facing an error on syncing records form third party api, This syncing works properly fine but I did not understand suddenly why this error occurs?, even I did not apply any change in code?. also even the syncing is working fine on localhost but not on live server, even both codes are same!!!!.
Error I am facing on live databse
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 368, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 357, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 921, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 546, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1328, in call_button action = self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1316, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 471, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 456, in _call_kw_multi result = method(recs, *args, **kwargs) File "/mnt/extra-addons/ol_extend_contacts_fields_api/models/extend_contacts_fields.py", line 200, in quick_sync student = api.sync_by_id(facts_id)['results'][facts_id] File "/mnt/extra-addons/ol_extend_contacts_fields_api/factapi/api.py", line 389, in sync_by_id self.get_student_by_id(id) File "/mnt/extra-addons/ol_extend_contacts_fields_api/factapi/api.py", line 33, in get_student_by_id response = requests.request("GET", url, headers=self.headers).json()['results'][0] File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Please help me to resolve this because it cause an affect on billing system