Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error (500) on access /api/v1/tasks while media is encoding #1044

Open
acrawford73 opened this issue Jul 23, 2024 · 0 comments
Open
Assignees

Comments

@acrawford73
Copy link

acrawford73 commented Jul 23, 2024

Describe the issue
In browser, Server Error (500) is seen while video is transcoding and /api/v1/tasks API is accessed to view running tasks.

To Reproduce
Steps to reproduce the issue:

  1. Access /api/vi/tasks. Api responds with no tasks in queue. All good.
  2. Upload a video.
  3. Access /api/v1/tasks. Server responds with "Server Error (500)"

Expected behavior
Proper '/api/v1/tasks' response with running task details.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Installation method: single server install
  • Browser: Brave

Additional context
Debug Log:

Internal Server Error: /api/v1/tasks
Traceback (most recent call last):
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
return view_func(*args, **kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/mediacms.io/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/mediacms.io/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/mediacms.io/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/mediacms.io/mediacms/files/views.py", line 1396, in get
ret = list_tasks()
File "/home/mediacms.io/mediacms/files/methods.py", line 427, in list_tasks
task_args = task_args.replace(bad, "")
AttributeError: 'list' object has no attribute 'replace'

@acrawford73 acrawford73 changed the title Server Error (500) when access /api/v1/tasks if media is encoding Server Error (500) on access /api/v1/tasks while media is encoding Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants