akkk 发表于 2023-5-3 20:42:53

Python项目自定义域名报错

REQUEST_DATE: 2023-05-03 20:40:10
PAN_VERSION: 7.9.96
OS_VERSION: Ubuntu 22.04.2 LTS (Jammy Jellyfish) x86_64(Py3.7.8)
REMOTE_ADDR: 116.23.126.59
REQUEST_URI: POST /project/python/AddProjectDomain?
REQUEST_FORM: {'data': '{"name":"academical","domains":["ac.akkk.cn",""]}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2008, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1955, in run
    result = getattr(toObject, get.action)(get)
File "/www/server/panel/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 1965, in AddProjectDomain
    return self._ckeck_add_domain(project_name, res_domains)
File "/www/server/panel/class/projectModel/pythonModel.py", line 2501, in _ckeck_add_domain
    for i in ssl_data["cert_data"]["dns"]:
KeyError: 'dns'

页: [1]
查看完整版本: Python项目自定义域名报错