Export / Import The Same Course Produces `MultiValueDictKeyError: 'course-data'`

Exporting the course then importing it back produces the following error django.utils.datastructures.MultiValueDictKeyError: 'course-data'.

Any idea why this is happening?

tutor_local-cms-1  | Traceback (most recent call last):
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
tutor_local-cms-1  |     response = get_response(request)
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
tutor_local-cms-1  |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-cms-1  |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
tutor_local-cms-1  |     return func(*args, **kwds)
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
tutor_local-cms-1  |     return view_func(request, *args, **kwargs)
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
tutor_local-cms-1  |     response = view_func(request, *args, **kwargs)
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/http.py", line 40, in inner
tutor_local-cms-1  |     return func(request, *args, **kwargs)
tutor_local-cms-1  |   File "/openedx/edx-platform/common/djangoapps/util/views.py", line 43, in inner
tutor_local-cms-1  |     response = view_func(request, *args, **kwargs)
tutor_local-cms-1  |   File "/openedx/edx-platform/./cms/djangoapps/contentstore/views/import_export.py", line 90, in import_handler
tutor_local-cms-1  |     return _write_chunk(request, courselike_key)
tutor_local-cms-1  |   File "/openedx/edx-platform/./cms/djangoapps/contentstore/views/import_export.py", line 125, in _write_chunk
tutor_local-cms-1  |     filename = request.FILES['course-data'].name
tutor_local-cms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/datastructures.py", line 78, in __getitem__
tutor_local-cms-1  |     raise MultiValueDictKeyError(key)
tutor_local-cms-1  | django.utils.datastructures.MultiValueDictKeyError: 'course-data'

I resolved this issue by getting on a faster upload bandwidth. The course.tar.gz file was 132 MB in size.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.