为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:CentOS 7.9.2009 x86_64
问题描述:Python站点界面提示KeyError: 'url'
REQUEST_DATE: 2023-12-31 15:09:46
PAN_VERSION: 8.0.48
OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 36.24.57.56
REQUEST_URI: POST /project/python/list_py_version?
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2292, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2239, in run
result = getattr(toObject, get.action)(get)
File "class/panelController.py", line 81, in model
result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/projectModel/pythonModel.py", line 3117, in list_py_version
all_s, errmsg = pyvm.api_ls_remote(True, force=True)
File "/www/server/panel/class/projectModel/btpyvm.py", line 352, in api_ls_remote
self.get_py_version(force)
File "/www/server/panel/class/projectModel/btpyvm.py", line 251, in get_py_version
self.stable_versions, err = self._get_versions_by_cloud()
File "/www/server/panel/class/projectModel/btpyvm.py", line 286, in _get_versions_by_cloud
self._base_url: str = res["url"]
KeyError: 'url'
|
|