nkrode / RedisLive

Visualize your redis instances, analyze query patterns and spikes.

Home Page:http://www.nkrode.com/article/real-time-dashboard-for-redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: Unknown string format

yuruli2058 opened this issue · comments

HTTPServerRequest(protocol='http', host='172.16.70.93:8888', method='GET', uri='/api/memory?from=Fri+Jul+03+2015+09%3A32%3A35+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&to=Fri+Jul+10+2015+09%3A32%3A35+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&server=172.16.70.78%3A6381', version='HTTP/1.1', remote_ip='172.16.70.108', headers={'Accept-Language': 'zh-CN,zh;q=0.8', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': '172.16.70.93:8888', 'Accept': 'application/json, text/javascript, /; q=0.01', 'User-Agent': 'Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.0 Safari/537.36', 'Connection': 'keep-alive', 'X-Requested-With': 'XMLHttpRequest', 'X-Devtools-Emulate-Network-Conditions-Client-Id': '7D1F3BBA-6289-4C2F-A3EB-A7A02239DF80', 'Referer': 'http://172.16.70.93:8888/index.html'})
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/tornado/web.py", line 1413, in _execute
result = method(_self.path_args, *_self.path_kwargs)
File "/home/RedisLive/src/api/controller/MemoryController.py", line 23, in get
start = dateutil.parser.parse(from_date)
File "/usr/lib/python2.6/site-packages/dateutil/parser.py", line 1008, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/lib/python2.6/site-packages/dateutil/parser.py", line 395, in parse
raise ValueError("Unknown string format")
ValueError: Unknown string format

this is data format error ,how to change date from patten ?

how to change date format for default pattern?

commented

#80 may be help you