天狼吖 发表于 2023-10-18 15:17:10

【待反馈】出错了,面板运行时发生错误!json.decoder.JSONDec...

本帖最后由 堡塔运维香菜卷 于 2023-10-18 15:53 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
8.0.3
系统版本:
centos7.6
问题描述:
出错了,面板运行时发生错误!json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
相关截图(日志、错误):出错了,面板运行时发生错误!json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
REQUEST_DATE: 2023-10-18 15:12:05 PAN_VERSION: 8.0.3OS_VERSION: CentOS7.6.1810 x86_64(Py3.7.9) REMOTE_ADDR: 182.139.187.144 REQUEST_URI: POST /warning?action=get_listREQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2031, in publicObject    res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 1978, in run    result = getattr(toObject, get.action)(get)File "/www/server/panel/class/panelWarning.py", line 105, in get_list    vuln_result = self.get_vuln_result()File "/www/server/panel/class/panelWarning.py", line 545, in get_vuln_result    result_dict["repair_count"] = self.count_repair(vul_list)File "/www/server/panel/class/panelWarning.py", line 609, in count_repair    cve_dict = json.loads(public.ReadFile(self.__repair_count))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.de

香菜卷 发表于 2023-10-18 15:53:36

您好,您在终端执行下述脚本自动切换一下节点,看看是否能解决您的问题呢?
curl -k -sSO https://120.78.156.100/new/auto_node.sh && bash auto_node.sh

堡塔运维南一 发表于 2024-3-11 18:25:37

问题解决了吗楼主
页: [1]
查看完整版本: 【待反馈】出错了,面板运行时发生错误!json.decoder.JSONDec...