宝塔用_037d 发表于 2024-2-14 10:36:51

【待反馈】UnicodeDecodeError: 'utf-8' codec can't decode b

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Linux正式版8.0.5
系统版本:centos7
问题描述:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 1792: invalid continuation byte相关截图(日志、错误):
出错了,面板运行时发生错误!UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 1792: invalid continuation byte
REQUEST_DATE: 2024-02-14 10:32:43VERSION: CentOS7.9.2009 x86_64(Py3.7.9)-   8.0.5 REMOTE_ADDR: 192.168.1.2 REQUEST_URI: POST /project/java/get_system_info?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject    res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2262, 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/javaModel.py", line 1548, in get_system_info    reuslt['jdk_info'] = self.get_local_jdk_version(get)File "/www/server/panel/class/projectModel/javaModel.py", line 1502, in get_local_jdk_version    lines = file.readlines()File "/www/server/panel/pyenv/lib/python3.7/codecs.py", line 322, in decode    (result, consumed) = self._buffer_decode(data, self.errors, final)UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 1792: invalid continuation byte

运维风光 发表于 2024-2-14 10:46:21

您好,是否安装jdk?
页: [1]
查看完整版本: 【待反馈】UnicodeDecodeError: 'utf-8' codec can't decode b