ERROR 2015-06-23 06 47 19 063 log Task apps social_action tasks Update

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ERROR 2015-06-23 06:47:19,063 log Task apps.social_action.tasks.UpdateAll[1d5c5d33-0607-4c6b-a464-362c9fa58522] raised exception: BadStatusLine("''",)
Traceback (most recent call last):
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/celery/task/trace.py", line 233, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/celery/task/trace.py", line 420, in __protected_call__
return self.run(*args, **kwargs)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/tasks.py", line 93, in run
parser.parse_all()
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/parsers/vk.py", line 44, in parse_all
self.update_platform_reposts(platform, older_post_id=old_id)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/parsers/vk.py", line 341, in update_platform_reposts
count += self.update_post_reposts(post, user)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/parsers/vk.py", line 296, in update_post_reposts
user)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/parsers/vk.py", line 544, in _parse_reposts_list
for repost in generator:
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/sources/vk.py", line 266, in get_reposts
for repost in self.call_with_pagination('wall.getReposts', **kwargs):
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/sources/vk.py", line 195, in call_with_pagination
response = self.get_response(url, query)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/sources/vk.py", line 161, in get_response
response = self.query(url, **query)
File "/home/kasper-univer2020.ru/application/kasper_loyality/apps/social_action/sources/vk.py", line 155, in query
return self.api.get(url, timeout=30, v='5.20', **kwargs)
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/vkontakte/api.py", line 162, in get
return self._get(method, timeout, **kwargs)
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/vkontakte/api.py", line 87, in _get
status, response = self._request(method, timeout=timeout, **kwargs)
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/vkontakte/api.py", line 156, in _request
return http.post(url, data, headers, timeout, secure=secure)
File "/home/kasper-univer2020.ru/env/local/lib/python2.7/site-packages/vkontakte/http.py", line 26, in post
response = connection.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 373, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''