iambus/xunlei-lixian — Issue #14: HTTP Error 504: Gateway Time-out
Author: iambus
Created: 2011-12-10 02:12:52+00:00
State: open

need retry...

Traceback (most recent call last):
File "/root/bin/lx_batch", line 14, in
download_batch(sys.argv[1:])
File "/root/bin/lx_batch", line 11, in download_batch
lixian_cli.execute_command(['download', '--input', f, '--delete', '--continue'])
File "/opt/root/projects/xunlei-lixian/lixian_cli.py", line 666, in execute_command
commands[command](args[1:])
File "/opt/root/projects/xunlei-lixian/lixian_cli.py", line 424, in download_task
download_multiple_tasks(client, download, tasks, **download_args)
File "/opt/root/projects/xunlei-lixian/lixian_cli.py", line 328, in download_multiple_tasks
download_single_task(client, download, task, output_dir=output_dir, delete=delete, resuming=resuming, overwrite=overwrite)
File "/opt/root/projects/xunlei-lixian/lixian_cli.py", line 324, in download_single_task
client.delete_task(task)
File "/opt/root/projects/xunlei-lixian/lixian.py", line 290, in delete_task
self.delete_task_by_id(task['id'])
File "/opt/root/projects/xunlei-lixian/lixian.py", line 287, in delete_task_by_id
self.delete_tasks_by_id([id])
File "/opt/root/projects/xunlei-lixian/lixian.py", line 282, in delete_tasks_by_id
response = json.loads(re.match(r'^delete_task_resp\((.+)\)$', self.urlopen(url).read()).group(1))
File "/opt/root/projects/xunlei-lixian/lixian.py", line 44, in urlopen
return self.opener.open(urllib2.Request(url, **args))
File "/opt/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/opt/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(*args)
File "/opt/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/opt/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 504: Gateway Time-out