为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:[url=]8.0.0[/url]
系统版本:CentOS 7.9.2009 x86_64
问题描述: 出错了,面板运行时发生错误![url=]TypeError: the JSON object must be str, bytes or bytearray, not bool[/url]
相关截图(日志、错误):Traceback (most recent call last): File "class/ajax.py", line 1794, in get_pay_type data = json.loads(public.readFile("data/pay_type.json")) File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from Nonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2016, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 1963, in run result = getattr(toObject, get.action)(get) File "class/ajax.py", line 1798, in get_pay_type data = json.loads(public.readFile("data/pay_type.json")) File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 341, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, 'TypeError: the JSON object must be str, bytes or bytearray, not bool
|
|