trader69 发表于 2023-12-14 10:15:52

【已解答】查看redis数据库时报错

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:windows免费版   7.9.0
系统版本:windows2019

问题描述:REQUEST_DATE: 2023-12-14 10:15:43
PAN_VERSION: 7.9.0
OS_VERSION: Windows Server 2019 Datacenter (build 17763) x64 (Py3.8.6)
REMOTE_ADDR: 222.128.54.20
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; rv:120.0) Gecko/20100101 Firefox/120.0
Traceback (most recent call last):
File "D:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject
    return run_exec().run(toObject, defs, get)
File "D:\BtSoft\panel\BTPanel\__init__.py", line 1813, in run
    result = eval(fun)
File "", line 1, in
File "D:\BtSoft\panel/class\panelDatabaseController.py", line 79, in model
    result = run_object(pdata)
File "D:\BtSoft\panel/class/databaseModel/redisModel.py", line 275, in get_db_keylist
    item['val'] = redis_obj.get(key).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 164: invalid continuation byte
相关截图(日志、错误):

阿珂 发表于 2023-12-14 11:37:22

这个是编码问题,无法解析数据库的值,可以使用第三方工具查看数据库
页: [1]
查看完整版本: 【已解答】查看redis数据库时报错