【已完成】出错了,面板运行时发生错误!
面板运行时发生错误: '连接宝塔官网(www.bt.cn)异常,请检查服务网络状况'最近几乎所有的Windows都是遇到这个问题REQUEST_DATE: 2023-11-12 22:31:03
PAN_VERSION: 7.9.0
OS_VERSION: Windows 10 Pro (build 19045) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: POST /ajax?action=UpdatePanel
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36
Traceback (most recent call last):
File "E:\BtSoft\panel/class\ajax.py", line 698, in UpdatePanel
updateInfo = json.loads(result)
File "C:\Program Files\python\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Program Files\python\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\python\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.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 "E:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject
return run_exec().run(toObject, defs, get)
File "E:\BtSoft\panel\BTPanel\__init__.py", line 1813, in run
result = eval(fun)
File "", line 1, in
File "E:\BtSoft\panel/class\ajax.py", line 701, in UpdatePanel
raise public.PanelError("连接宝塔官网(www.bt.cn)异常,请检查服务网络状况")
public.PanelError: 面板运行时发生错误: '连接宝塔官网(www.bt.cn)异常,请检查服务网络状况'
您好,您到服务器中执行下hosts
win的hosts:C:\Windows\System32\drivers\etc\hosts
42.157.129.124 www.bt.cn api.bt.cn download.bt.cn dg2.bt.cn dg1.bt.cn
然后保存后到cmd中
pingwww.bt.cn
看返回信息是哪个IP? 您好,请问您的问题解决了吗?如果您的问题未解决请重新发帖,这边先把帖子关闭了 大炮运维V587 发表于 2023-11-15 10:54
您好,请问您的问题解决了吗?如果您的问题未解决请重新发帖,这边先把帖子关闭了 ...
修改hosts就可以了,可能就是因为这个问题
页:
[1]