Kilo error with python 2.7 encoding error : When delete vm or others
2015年9月2日发布
Dashboard Error:/var/log/httpd/error_log
... ....
[:error] [pid 9140] File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 817, in handle
[:error] [pid 9140] UnicodeDecodeError: 'ascii' codec can't decode byte 0xea in position 0: ordinal not in range(128)
Problem:Python2.7 systax error must set utf8 as a default
Solution:
vi /usr/lib/python2.7/site-packages/horizon/tables/actions.py
// add these lines
import sys
reload(sys)
sys.setdefaultencoding('utf8')
*Note:
Still there is another error exist but there is no more error page exist on dashboard
Anyway it works well ... so ... i just want to ignore this error kk
Error Msg:
[:error] [pid 10055] Unauthorized: Unauthorized (HTTP 401) (Request-ID: req-88e846ad-8d08-47f1-9b9f-7a489d5da7a3)
Reference:
优质内容筛选与推荐>>