醉悠然 发表于 2024-7-7 05:04:23

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

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.2.0
系统版本:CentOS 7.6 64-bit
问题描述:打开网站文件时 出现错误
出错了,面板运行时发生错误!UnicodeEncodeError: 'utf-8' codec can't encode characters in position 27-28: surrogates not allowed
REQUEST_DATE: 2024-07-07 05:03:18VERSION: CentOS7.8.2003 x86_64(Py3.7.9) - 8.2.0 REMOTE_ADDR: 221.227.145.144 REQUEST_URI: POST /files?action=GetDirNewREQUEST_FORM: {'p': '1', 'showRow': '500', 'path': '/www/wwwroot/ys.xincyy.cn'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2430, in publicObject    res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2377, in run    result = getattr(toObject, get.action)(get)File "/www/server/panel/class/files.py", line 884, in GetDirNew    'rmk': public.readFile('data/files_ps/' + public.Md5(filename)) if os.path.exists('data/files_ps/' + public.Md5(filename)) else pss.get(filename, ''),# 备注File "class/public.py", line 191, in Md5    strings = strings.encode()UnicodeEncodeError: 'utf-8' codec can't encode characters in position 27-28: surrogates not allowed相关截图(日志、错误):

运维技术阿闯 发表于 2024-7-8 09:42:27

您好,修复一下面板,然后重新打开,这个编码问题我们有修复的
页: [1]
查看完整版本: 【待反馈】面板运行时发生错误!