Error when setting playlist of emission
When selecting a playlist error "Could not update timeslot | status code 500" is displayed.
Not sure if the origin is within dashboard or steering. Please move the ticket if it is dashboard's cause.
When clicking the error message away it seems to be set though (sometimes, sometimes it didn't work).
Steering Logs:
Traceback (most recent call last):
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/home/david/Code/aura/steering/program/views.py", line 798, in update
ts = TimeSlot.objects.filter(show=show_pk, start__gt=timeslot.start)[0]
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/db/models/query.py", line 309, in __getitem__
return qs._result_cache[0]
IndexError: list index out of range
ERROR:django.request:Internal Server Error: /api/v1/shows/6/schedules/947/timeslots/953/
Traceback (most recent call last):
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/home/david/Code/aura/steering/program/views.py", line 798, in update
ts = TimeSlot.objects.filter(show=show_pk, start__gt=timeslot.start)[0]
File "/home/david/Code/aura/steering/python/lib/python3.6/site-packages/django/db/models/query.py", line 309, in __getitem__
return qs._result_cache[0]
IndexError: list index out of range
[14/Sep/2020 16:43:04] "PUT /api/v1/shows/6/schedules/947/timeslots/953/ HTTP/1.1" 500 20039
Edited by David Trattnig