老大们,打开服务器管理界面时报这个错误,怎么处理?
ValueError: not enough values to unpack (expected 2, got 1)
REQUEST_DATE: 2024-03-30 19:13:32
PAN_VERSION: 7.9.9
OS_VERSION: Windows Server 2016 Datacenter (build 14393) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: GET /phpwebadmin/?
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Program Files\python\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "D:\BtSoft\panel\BTPanel\__init__.py", line 1033, in phpwebadmin
status,headers,bdata = p.format_header_data(headers_data)
File "class\panelPHP.py", line 518, in format_header_data
header, value = line.split(b':', 1)
ValueError: not enough values to unpack (expected 2, got 1)
|