当前位置:论坛首页 > BUG提交 > Linux面板

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

发表在 BUG提交2023-7-14 12:56 [复制链接] 1 1045

出错了,面板运行时发生错误!            TypeError: the JSON object must be str, bytes or bytearray, not bool   
    REQUEST_DATE: 2023-07-14 12:55:09 PAN_VERSION: 8.0.0  OS_VERSION: CentOS  7.8.2003 x86_64(Py3.7.9) REMOTE_ADDR:  REQUEST_URI: POST /ajax?action=get_pay_typeREQUEST_FORM: {}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0    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   
  • 很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
使用道具 举报 只看该作者 回复
发表于 2023-7-17 11:09:17 | 显示全部楼层
您好,您通过下面命令尝试恢复看看,这个问题会在下个版本做出一个修复的
  1. unzip -o /www/bakcup/panel/2023-07-17.zip
  2. mv /www/server/panel/data/pay_type.json /www/server/panel/data/pay_type.json_bak
  3. \cp -r -a /www/backup/panel/2023-07-17/data/pay_type.json /www/server/panel/data/pay_type.json
复制代码


此压缩备份文件,修改为您最近正常的日期文件进行恢复
2023-07-17.zip
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表