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

ValueError: Unknown string format #77

Open
yuruli2058 opened this issue Jul 10, 2015 · 3 comments
Open

ValueError: Unknown string format #77

yuruli2058 opened this issue Jul 10, 2015 · 3 comments

Comments

@yuruli2058
Copy link

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

@yuruli2058
Copy link
Author

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

@yuruli2058
Copy link
Author

how to change date format for default pattern?

@zhangjiayin
Copy link

#80 may be help you

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

2 participants