Hi @lasalesi Hope you are well. Am getting this error on a V12 instance whenever I tick Enable woocommerce
and try to save it. Tried to find the source of the issue without success
Server Error
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Heres the complete traceback
File "/home/XXX/frappe-bench/apps/frappe/frappe/app.py", line 67, in application
response = frappe.api.handle()
File "/home/XXX/frappe-bench/apps/frappe/frappe/api.py", line 59, in handle
return frappe.handler.handle()
File "/home/XXX/frappe-bench/apps/frappe/frappe/handler.py", line 24, in handle
data = execute_cmd(cmd)
File "/home/XXX/frappe-bench/apps/frappe/frappe/handler.py", line 64, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/XXX/frappe-bench/apps/frappe/frappe/__init__.py", line 1105, in call
return fn(*args, **newargs)
File "/home/XXX/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
doc.save()
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 273, in save
return self._save(*args, **kwargs)
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 309, in _save
self.run_before_save_methods()
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 901, in run_before_save_methods
self.run_method("validate")
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 802, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 1081, in composer
return composed(self, method, *args, **kwargs)
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 1064, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/XXX/frappe-bench/apps/frappe/frappe/model/document.py", line 796, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/XXX/frappe-bench/apps/woocommerceconnector/woocommerceconnector/woocommerceconnector/doctype/woocommerce_config/woocommerce_config.py", line 17, in validate
self.validate_access()
File "/home/XXX/frappe-bench/apps/woocommerceconnector/woocommerceconnector/woocommerceconnector/doctype/woocommerce_config/woocommerce_config.py", line 26, in validate_access
r = get_request('settings', {"api_key": self.api_key,
File "/home/XXX/frappe-bench/apps/woocommerceconnector/woocommerceconnector/woocommerce_requests.py", line 68, in get_request
return get_request_request(path, settings).json()
File "/home/XXX/frappe-bench/apps/woocommerceconnector/woocommerceconnector/woocommerce_requests.py", line 60, in get_request_request
message="{0}: {1}".format(r.url, r.json()),
File "/home/XXX/frappe-bench/env/lib/python3.8/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Thanks for the help.