Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能够访问SSDBAdmin但是无法获取SSDB数据 #27

Open
diyhome opened this issue Feb 3, 2020 · 6 comments
Open

能够访问SSDBAdmin但是无法获取SSDB数据 #27

diyhome opened this issue Feb 3, 2020 · 6 comments

Comments

@diyhome
Copy link

diyhome commented Feb 3, 2020

如题
Web网页提示:500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
服务器的运行日志里面有一个报错:AttributeError: 'list' object has no attribute 'decode

服务器环境:Centos 8 && python36

@FrankWasHello
Copy link

我也是这个问题,不知道是什么情况,求大神解答
image

@FrankWasHello
Copy link

以下为报错信息:
[2023-06-06 17:06:03,207] ERROR in app: Exception on /ssdbadmin/ [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Users/Desktop/OtherProject/SSDBAdmin/SSDBAdmin/apps/index.py", line 34, in index
server_info = SSDBClient(request).serverInfo()
File "/Users/Desktop/OtherProject/SSDBAdmin/SSDBAdmin/model/SSDBClient.py", line 52, in serverInfo
version = info_list[2]
IndexError: list index out of range

@jhao104
Copy link
Owner

jhao104 commented Jun 9, 2023

ssdb版本发下

@FrankWasHello
Copy link

image

@jhao104
Copy link
Owner

jhao104 commented Jun 12, 2023

没复现出来,你可以试试把这一行print出来看看是什么
File "/Users/Desktop/OtherProject/SSDBAdmin/SSDBAdmin/model/SSDBClient.py", line 52, in serverInfo version = info_list[2]
加个print info_list. 这里预期是个版本信息的列表。版本号在第三个位置

@FrankWasHello
Copy link

感觉应该是redis的问题。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants