When I go to the "Folders" menu and select any folder, I am getting this error:
Internal Server Error: /api/scene/
Traceback (most recent call last):
File "c:\python\lib\site-packages\django\core\handlers\base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "c:\python\lib\site-packages\django\core\handlers\base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, callback_kwargs)
File "c:\python\lib\site-packages\django\views\decorators\csrf.py", line 58, in wrapped_view
return view_func(*args, *kwargs)
File "c:\python\lib\site-packages\rest_framework\viewsets.py", line 87, in view
return self.dispatch(request, args, kwargs)
File "c:\python\lib\site-packages\rest_framework\views.py", line 466, in dispatch
response = self.handle_exception(exc)
File "c:\python\lib\site-packages\rest_framework\views.py", line 463, in dispatch
response = handler(request, *args, **kwargs)
File "c:\python\lib\site-packages\rest_framework\mixins.py", line 40, in list
queryset = self.filter_queryset(self.get_queryset())
File "D:\YAPO\videos\views.py", line 1080, in get_queryset
return search_in_get_queryset(queryset, self.request)
File "D:\YAPO\videos\views.py", line 131, in search_in_get_queryset
folder = Folder.objects.get(pk=int(request.query_params['folders_in_tree']))
ValueError: invalid literal for int() with base 10: ''
[02/Aug/2018 16:16:53] "GET /api/scene/?actors=&folders_in_tree=&is_runner_up=&limit=50&offset=0&pageType=Scene&playlists=&recursive=true&scene_tags=&websites= HTTP/1.1" 500 99778
Regarding videos/views.py, line 131:
When I go to the "Folders" menu and select any folder, I am getting this error:
Internal Server Error: /api/scene/ Traceback (most recent call last): File "c:\python\lib\site-packages\django\core\handlers\base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) File "c:\python\lib\site-packages\django\core\handlers\base.py", line 147, in get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "c:\python\lib\site-packages\django\views\decorators\csrf.py", line 58, in wrapped_view return view_func(*args, *kwargs) File "c:\python\lib\site-packages\rest_framework\viewsets.py", line 87, in view return self.dispatch(request, args, kwargs) File "c:\python\lib\site-packages\rest_framework\views.py", line 466, in dispatch response = self.handle_exception(exc) File "c:\python\lib\site-packages\rest_framework\views.py", line 463, in dispatch response = handler(request, *args, **kwargs) File "c:\python\lib\site-packages\rest_framework\mixins.py", line 40, in list queryset = self.filter_queryset(self.get_queryset()) File "D:\YAPO\videos\views.py", line 1080, in get_queryset return search_in_get_queryset(queryset, self.request) File "D:\YAPO\videos\views.py", line 131, in search_in_get_queryset folder = Folder.objects.get(pk=int(request.query_params['folders_in_tree'])) ValueError: invalid literal for int() with base 10: '' [02/Aug/2018 16:16:53] "GET /api/scene/?actors=&folders_in_tree=&is_runner_up=&limit=50&offset=0&pageType=Scene&playlists=&recursive=true&scene_tags=&websites= HTTP/1.1" 500 99778