web日志分析不用,修复面板也不行
出错了,面板运行时发生错误!json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
REQUEST_DATE: 2024-02-22 21:51:19 VERSION: CentOS 7.6.1810 x86_64(Py3.7.9) - 8.0.55 REMOTE_ADDR: 1.162.19.184 REQUEST_URI: POST /ajax?action=get_resultREQUEST_FORM: {'p': '1', 'row': '10', 'path': '/www/wwwlogs/shuiye.cc.log'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 SE 2.X MetaSr 1.0Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2320, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2267, in run result = getattr(toObject, get.action)(get) File "class/ajax.py", line 1926, in get_result return log_analysis.get_result(get) File "/www/server/panel/class/log_analysis.py", line 34, in wrapper data = json.loads(public.ReadFile('/www/server/panel/data/analysis.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)
|
|