{"action":"created","issue":{"url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/185","repository_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt","labels_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/185/comments","events_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/185/events","html_url":"https://github.com/ManoSeimas/manoseimas.lt/issues/185","id":168803662,"number":185,"title":"Getting 'list index out of range' while adding new voting :(","user":{"login":"chompomonim","id":153896,"avatar_url":"https://avatars.githubusercontent.com/u/153896?v=3","gravatar_id":"","url":"https://api.github.com/users/chompomonim","html_url":"https://github.com/chompomonim","followers_url":"https://api.github.com/users/chompomonim/followers","following_url":"https://api.github.com/users/chompomonim/following{/other_user}","gists_url":"https://api.github.com/users/chompomonim/gists{/gist_id}","starred_url":"https://api.github.com/users/chompomonim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chompomonim/subscriptions","organizations_url":"https://api.github.com/users/chompomonim/orgs","repos_url":"https://api.github.com/users/chompomonim/repos","events_url":"https://api.github.com/users/chompomonim/events{/privacy}","received_events_url":"https://api.github.com/users/chompomonim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"sirex","id":297583,"avatar_url":"https://avatars.githubusercontent.com/u/297583?v=3","gravatar_id":"","url":"https://api.github.com/users/sirex","html_url":"https://github.com/sirex","followers_url":"https://api.github.com/users/sirex/followers","following_url":"https://api.github.com/users/sirex/following{/other_user}","gists_url":"https://api.github.com/users/sirex/gists{/gist_id}","starred_url":"https://api.github.com/users/sirex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirex/subscriptions","organizations_url":"https://api.github.com/users/sirex/orgs","repos_url":"https://api.github.com/users/sirex/repos","events_url":"https://api.github.com/users/sirex/events{/privacy}","received_events_url":"https://api.github.com/users/sirex/received_events","type":"User","site_admin":false},"assignees":[{"login":"sirex","id":297583,"avatar_url":"https://avatars.githubusercontent.com/u/297583?v=3","gravatar_id":"","url":"https://api.github.com/users/sirex","html_url":"https://github.com/sirex","followers_url":"https://api.github.com/users/sirex/followers","following_url":"https://api.github.com/users/sirex/following{/other_user}","gists_url":"https://api.github.com/users/sirex/gists{/gist_id}","starred_url":"https://api.github.com/users/sirex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirex/subscriptions","organizations_url":"https://api.github.com/users/sirex/orgs","repos_url":"https://api.github.com/users/sirex/repos","events_url":"https://api.github.com/users/sirex/events{/privacy}","received_events_url":"https://api.github.com/users/sirex/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/milestones/2","html_url":"https://github.com/ManoSeimas/manoseimas.lt/milestones/Test%20v2","labels_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/milestones/2/labels","id":1735061,"number":2,"title":"Test v2","description":"Upgrade test - a possibility to answer for 10 easy questions and get information which political party is most similar to you. In this version we'd like to have more modern test UI and possibility to share results on Facebook.\r\n\r\nMockups are here: https://app.moqups.com/ignas.rubikas@gmail.com/0FqdAa9O/view/page/a969cbe49\r\n","creator":{"login":"chompomonim","id":153896,"avatar_url":"https://avatars.githubusercontent.com/u/153896?v=3","gravatar_id":"","url":"https://api.github.com/users/chompomonim","html_url":"https://github.com/chompomonim","followers_url":"https://api.github.com/users/chompomonim/followers","following_url":"https://api.github.com/users/chompomonim/following{/other_user}","gists_url":"https://api.github.com/users/chompomonim/gists{/gist_id}","starred_url":"https://api.github.com/users/chompomonim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chompomonim/subscriptions","organizations_url":"https://api.github.com/users/chompomonim/orgs","repos_url":"https://api.github.com/users/chompomonim/repos","events_url":"https://api.github.com/users/chompomonim/events{/privacy}","received_events_url":"https://api.github.com/users/chompomonim/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":28,"state":"open","created_at":"2016-04-27T21:28:14Z","updated_at":"2016-08-02T05:39:23Z","due_on":"2016-06-29T21:00:00Z","closed_at":null},"comments":3,"created_at":"2016-08-02T05:39:23Z","updated_at":"2016-08-03T04:54:59Z","closed_at":null,"body":"http://www.lrs.lt/sip/portal.show?p_r=15275&p_k=1&p_a=sale_bals&p_bals_id=-23086\r\n\r\nOn console:\r\n```\r\n[02/Aug/2016 08:36:14] \"GET /valdymas/jsi18n/ HTTP/1.1\" 200 7331\r\nInternal Server Error: /valdymas/scrapy/voting/add/\r\nTraceback (most recent call last):\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/core/handlers/base.py\", line 132, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\", line 616, in wrapper\r\n    return self.admin_site.admin_view(view)(*args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\", line 110, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/views/decorators/cache.py\", line 57, in _wrapped_view_func\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/sites.py\", line 233, in inner\r\n    return view(request, *args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\", line 1516, in add_view\r\n    return self.changeform_view(request, None, form_url, extra_context)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\", line 34, in _wrapper\r\n    return bound_func(*args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\", line 110, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\", line 30, in bound_func\r\n    return func.__get__(self, type(self))(*args2, **kwargs2)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\", line 145, in inner\r\n    return func(*args, **kwargs)\r\n  File \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\", line 1461, in changeform_view\r\n    new_object = self.save_form(request, form, change=not add)\r\n  File \"/vagrant/manoseimas/scrapy/admin.py\", line 32, in save_form\r\n    return services.crawl_voting(source)\r\n  File \"/vagrant/manoseimas/scrapy/services.py\", line 32, in crawl_voting\r\n    items = list(spider.parse_person_votes(response))\r\n  File \"/vagrant/manoseimas/scrapy/spiders/sittings.py\", line 421, in parse_person_votes\r\n    hxs = HtmlXPathSelector(response).select(xpath)[0]\r\nIndexError: list index out of range\r\n```\r\n\r\nTraceback:\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: POST\r\nRequest URL: http://localhost:8000/valdymas/scrapy/voting/add/?_changelist_filters=_to_field%3Did%26_popup%3D1\r\n\r\nDjango Version: 1.8.5\r\nPython Version: 2.7.6\r\nInstalled Applications:\r\n('django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.sitemaps',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.admin',\r\n 'social.apps.django_app.default',\r\n 'sorl.thumbnail',\r\n 'compressor',\r\n 'haystack',\r\n 'lazysignup',\r\n 'manoseimas',\r\n 'django_extensions',\r\n 'test_utils',\r\n 'django_nose',\r\n 'manoseimas.mps_v2',\r\n 'manoseimas.widget',\r\n 'manoseimas.lobbyists',\r\n 'manoseimas.compatibility_test',\r\n 'manoseimas.scrapy',\r\n 'rest_framework',\r\n 'webpack_loader',\r\n 'debug_toolbar')\r\nInstalled Middleware:\r\n('django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.middleware.locale.LocaleMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'debug_toolbar.middleware.DebugToolbarMiddleware')\r\n\r\n\r\nTraceback:\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/core/handlers/base.py\" in get_response\r\n  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\" in wrapper\r\n  616.                 return self.admin_site.admin_view(view)(*args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\" in _wrapped_view\r\n  110.                     response = view_func(request, *args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/views/decorators/cache.py\" in _wrapped_view_func\r\n  57.         response = view_func(request, *args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/sites.py\" in inner\r\n  233.             return view(request, *args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\" in add_view\r\n  1516.         return self.changeform_view(request, None, form_url, extra_context)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\" in _wrapper\r\n  34.             return bound_func(*args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\" in _wrapped_view\r\n  110.                     response = view_func(request, *args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\" in bound_func\r\n  30.                 return func.__get__(self, type(self))(*args2, **kwargs2)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/utils/decorators.py\" in inner\r\n  145.                     return func(*args, **kwargs)\r\nFile \"/home/vagrant/manoseimas/eggs/Django-1.8.5-py2.7.egg/django/contrib/admin/options.py\" in changeform_view\r\n  1461.                 new_object = self.save_form(request, form, change=not add)\r\nFile \"/vagrant/manoseimas/scrapy/admin.py\" in save_form\r\n  32.         return services.crawl_voting(source)\r\nFile \"/vagrant/manoseimas/scrapy/services.py\" in crawl_voting\r\n  32.     items = list(spider.parse_person_votes(response))\r\nFile \"/vagrant/manoseimas/scrapy/spiders/sittings.py\" in parse_person_votes\r\n  421.         hxs = HtmlXPathSelector(response).select(xpath)[0]\r\n\r\nException Type: IndexError at /valdymas/scrapy/voting/add/\r\nException Value: list index out of range\r\n```"},"comment":{"url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/comments/237138688","html_url":"https://github.com/ManoSeimas/manoseimas.lt/issues/185#issuecomment-237138688","issue_url":"https://api.github.com/repos/ManoSeimas/manoseimas.lt/issues/185","id":237138688,"user":{"login":"chompomonim","id":153896,"avatar_url":"https://avatars.githubusercontent.com/u/153896?v=3","gravatar_id":"","url":"https://api.github.com/users/chompomonim","html_url":"https://github.com/chompomonim","followers_url":"https://api.github.com/users/chompomonim/followers","following_url":"https://api.github.com/users/chompomonim/following{/other_user}","gists_url":"https://api.github.com/users/chompomonim/gists{/gist_id}","starred_url":"https://api.github.com/users/chompomonim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chompomonim/subscriptions","organizations_url":"https://api.github.com/users/chompomonim/orgs","repos_url":"https://api.github.com/users/chompomonim/repos","events_url":"https://api.github.com/users/chompomonim/events{/privacy}","received_events_url":"https://api.github.com/users/chompomonim/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T04:54:59Z","updated_at":"2016-08-03T04:54:59Z","body":"Thanks for info. Maybe then I will ask to enter and save in DB only bals_id, and not whole URL. This will solve problem for the future as well."}}
{"actor":{"display_login":"chompomonim"}}