宝塔用户_vlozjs 发表于 2024-8-23 10:46:49

【待反馈】AttributeError: 'dict' object has no attribute 'replace'

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.1.0
系统版本:Windows Server 2022 Datacenter
问题描述:打开数据库面板报错
相关截图(日志、错误):
REQUEST_DATE: 2024-08-23 10:37:14
PAN_VERSION: 8.1.0
OS_VERSION: Windows Server 2022 Datacenter (build 20348) x64 (Py3.8.6)
REMOTE_ADDR: 114.103.238.182
REQUEST_URI: POST /database/redis/get_db_keylist?
REQUEST_FORM: {'data': '{"db_type":0,"db_idx":0,"limit":20}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Traceback (most recent call last):
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1591, in publicObject
    return run_exec().run(toObject, defs, get)
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1830, in run
    result = resobj(get)
File "C:\BtSoft\panel/class\panelDatabaseController.py", line 79, in model
    result = run_object(pdata)
File "C:\BtSoft\panel/class/databaseModel/redisModel.py", line 293, in get_db_keylist
    item['val'] = public.xsssec(item['val'])
File "C:\BtSoft\panel/class\public.py", line 3970, in xsssec
    return text.replace('&', '&').replace('"', '"').replace('<', '<').replace('>', '>')
AttributeError: 'dict' object has no attribute 'replace'

运维技术阿闯 发表于 2024-8-23 11:54:58

您好,您这边bt 16修复一下面板后看是否还在报错
页: [1]
查看完整版本: 【待反馈】AttributeError: 'dict' object has no attribute 'replace'