【待反馈】出错了,面板运行时发生错误! TypeError: the JSON ob
REQUEST_DATE: 2024-09-29 15:58:18PAN_VERSION: 8.0.33
OS_VERSION: CentOS7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 11.8.4.113
REQUEST_URI: POST /config?action=get_config
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2172, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2119, in run
result = getattr(toObject, get.action)(get)
File "class/config.py", line 1522, in get_config
p_token = self.get_token(None)
File "class/config.py", line 1564, in get_token
return panelApi.panelApi().get_token(get)
File "/www/server/panel/class/panelApi.py", line 16, in get_token
data = self.get_api_config()
File "/www/server/panel/class/panelApi.py", line 66, in get_api_config
data = json.loads(tmp)
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
您到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
mv/www/server/panel/pyenv /www/backup/pyenv_backup
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash
页:
[1]