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:

http://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

优质内容筛选与推荐>>
1、众志成城,我的所见所感
2、where常用运算符
3、Jmeter23:常数吞吐量控制器-控制吞吐量指标的
4、msdn
5、移动端web学习总结


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号