Hi @regis
I was going through the system checking if everything all right. I found that uploading a video transcript generates an error!
tutor local logs --tail=100 cms
| 2020-08-05 21:13:32,032 ERROR 19 [django.request] [user 3] log.py:228 - Internal Server Error: /transcripts/upload
cms_1 | Traceback (most recent call last):
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
cms_1 | response = get_response(request)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 115, in _get_response
cms_1 | response = self.process_exception_by_middleware(e, request)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 113, in _get_response
cms_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
cms_1 | File "/opt/pyenv/versions/3.5.9/lib/python3.5/contextlib.py", line 30, in inner
cms_1 | return func(*args, **kwds)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
cms_1 | return view_func(request, *args, **kwargs)
cms_1 | File "/openedx/edx-platform/cms/djangoapps/contentstore/views/transcripts_ajax.py", line 234, in upload_transcripts
cms_1 | file_data=ContentFile(sjson_subs),
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/edxval/api.py", line 387, in create_or_update_video_transcript
cms_1 | video_transcript, __ = VideoTranscript.create_or_update(video, language_code, metadata, file_data)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/edxval/models.py", line 534, in create_or_update
cms_1 | video_transcript.transcript.save(file_name, transcript_file_data)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/db/models/fields/files.py", line 87, in save
cms_1 | self.name = self.storage.save(name, content, max_length=self.field.max_length)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/django/core/files/storage.py", line 52, in save
cms_1 | return self._save(name, content)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/storages/backends/s3boto3.py", line 495, in _save
cms_1 | self._save_content(obj, content, parameters=parameters)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/storages/backends/s3boto3.py", line 510, in _save_content
cms_1 | obj.upload_fileobj(content, ExtraArgs=put_parameters)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/boto3/s3/inject.py", line 513, in object_upload_fileobj
cms_1 | ExtraArgs=ExtraArgs, Callback=Callback, Config=Config)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/boto3/s3/inject.py", line 431, in upload_fileobj
cms_1 | return future.result()
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/s3transfer/futures.py", line 73, in result
cms_1 | return self._coordinator.result()
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/s3transfer/futures.py", line 233, in result
cms_1 | raise self._exception
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/s3transfer/tasks.py", line 126, in __call__
cms_1 | return self._execute_main(kwargs)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/s3transfer/tasks.py", line 150, in _execute_main
cms_1 | return_value = self._main(**kwargs)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/s3transfer/upload.py", line 692, in _main
cms_1 | client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/client.py", line 317, in _api_call
cms_1 | return self._make_api_call(operation_name, kwargs)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/client.py", line 596, in _make_api_call
cms_1 | request_signer=self._request_signer, context=request_context)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/hooks.py", line 242, in emit_until_response
cms_1 | responses = self._emit(event_name, kwargs, stop_on_response=True)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/hooks.py", line 210, in _emit
cms_1 | response = handler(**kwargs)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/handlers.py", line 209, in conditionally_calculate_md5
cms_1 | calculate_md5(params, **kwargs)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/handlers.py", line 187, in calculate_md5
cms_1 | binary_md5 = _calculate_md5_from_file(body)
cms_1 | File "/openedx/venv/lib/python3.5/site-packages/botocore/handlers.py", line 201, in _calculate_md5_from_file
cms_1 | md5.update(chunk)
cms_1 | TypeError: Unicode-objects must be encoded before hashing
Thanks