Dear Members,
We tried to Reschedule a Survey, but we got “list index out of range” error. What cause this? How can I fix it?
Debian GNU/Linux 9 \n \l
$ indico -v
Indico v2.3.1
2020-11-29 18:57:10,367 63cdf57cc8a14986 indico.flask - ERROR errors.py:99 -- list index
out of range
Traceback (most recent call last):
File "/opt/indico/.venv/local/lib/python2.7/site-packages/flask/app.py", line 1950, in
full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/flask/app.py", line 1936, in
dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/flask/util.py",
line 82, in wrapper
return obj().process()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/rh.py", line 275,
in process
res = self._do_process()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/rh.py", line 245,
in _do_process
rv = self._process()
File
"/opt/indico/.venv/local/lib/python2.7/site-packages/indico/modules/events/surveys/controllers/management/survey.py",
line 105, in _process
allow_reschedule_start=allow_reschedule_start)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/forms/base.py",
line 62, in __call__
return super(IndicoFormMeta, cls).__call__(*args, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/wtforms/form.py", line 208, in
__call__
return type.__call__(cls, *args, **kwargs)
File
"/opt/indico/.venv/local/lib/python2.7/site-packages/indico/modules/events/surveys/forms.py",
line 91, in __init__
super(ScheduleSurveyForm, self).__init__(*args, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/forms/base.py",
line 117, in __init__
super(IndicoForm, self).__init__(*args, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/flask_wtf/form.py", line 87,
in __init__
super(FlaskForm, self).__init__(formdata=formdata, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/wtforms/form.py", line 274, in
__init__
self.process(formdata, obj, data=data, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/wtforms/form.py", line 127, in
process
field.process(formdata, getattr(obj, name))
File "/opt/indico/.venv/local/lib/python2.7/site-packages/wtforms/fields/core.py", line
310, in process
self.process_formdata(self.raw_data)
File
"/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/forms/fields/datetime.py",
line 254, in process_formdata
if not valuelist[1]:
IndexError: list index out of range
{u'data': {u'get': {},
u'headers': {'Accept': u'application/json, text/javascript, */*; q=0.01',
'Accept-Encoding': u'gzip, deflate, br',
'Accept-Language':
u'en-HU,en;q=0.9,hu-HU;q=0.8,hu;q=0.7,en-GB;q=0.6,en-US;q=0.5',
'Connection': u'keep-alive',
'Content-Length': u'101',
'Content-Type': u'application/x-www-form-urlencoded;
charset=UTF-8',
'Cookie': u'*****',
'Host': u'*****',
'Origin': u'*****',
'Referer':
u'*****',
'Sec-Fetch-Dest': u'empty',
'Sec-Fetch-Mode': u'cors',
'Sec-Fetch-Site': u'same-origin',
'User-Agent': u'*****',
'X-Csrf-Token': u'*****',
'X-Requested-With': u'XMLHttpRequest'},
u'json': None,
u'post': {'csrf_token': u'*****',
'end_dt': [u'01/12/2020', u'23:59'],
'start_dt': u'00:00'},
u'url': {'confId': u'1037', 'survey_id': 672}},
u'endpoint': u'surveys.schedule_survey',
u'id': '63cdf57cc8a14986',
u'ip': '*****',
u'method': 'POST',
u'referrer': '*****',
u'rh': 'RHScheduleSurvey',
u'time': '2020-11-29T18:57:10.461959',
u'url': u'*****',
u'user': {u'email': u'*****',
u'id': 250,
u'name': u'Attila Debreczeni'},
u'user_agent': u'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/87.0.4280.66 Safari/537.36'}