Splunk found: ItemNotFoundError for missing video in VideoSummary endpoint

Description

This error may not be an issue in the new Course Blocks API.

  • Code should be robust against video content changes (in case author deleted video, for example, and VAL is out of date).

  • If video no longer exists, just skip over it.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Dec 10 07:10:10 ip-10-2-11-79 [service_variant=lms][django.request][env:prod-edx-edxapp] ERROR [ip-10-2-11-79 11707] [base.py:256] - Internal Server Error: /api/mobile/v0.5/video_outlines/transcripts/course-v1:UQx+IELTSx+3T2015/2757c19a2ed4473ab65b9404a2531fe1/en Traceback (most recent call last): File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner return func(*args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner return func(*args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/newrelic-2.56.0.42/newrelic/hooks/framework_django.py", line 499, in wrapper return wrapped(*args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(*args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/newrelic-2.56.0.42/newrelic/hooks/component_djangorestframework.py", line 27, in _nr_wrapper_APIView_dispatch_ return wrapped(*args, **kwargs) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 466, in dispatch response = self.handle_exception(exc) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 463, in dispatch response = handler(request, *args, **kwargs) File "/edx/app/edxapp/edx-platform/openedx/core/lib/api/view_utils.py", line 114, in _wrapper return func(self, request, course=course, *args, **kwargs) File "/edx/app/edxapp/edx-platform/lms/djangoapps/mobile_api/video_outlines/views.py", line 119, in get video_descriptor = modulestore().get_item(usage_key) File "/edx/app/edxapp/edx-platform/lms/djangoapps/ccx/modulestore.py", line 134, in get_item self._modulestore.get_item(usage_key, depth, **kwargs) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 90, in inner retval = func(field_decorator=strip_key_collection, *args, **kwargs) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 234, in get_item return store.get_item(usage_key, depth, **kwargs) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py", line 266, in get_item return super(DraftVersioningModuleStore, self).get_item(usage_key, depth=depth, **kwargs) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 1055, in get_item items = self._load_items(course, [BlockKey.from_usage_key(usage_key)], depth, **kwargs) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 764, in _load_items return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys] File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 127, in _load_item block_data = self.get_module_data(block_key, course_key) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 148, in get_module_data raise ItemNotFoundError(block_key) ItemNotFoundError: BlockKey(type='video', id=u'2757c19a2ed4473ab65b9404a2531fe1')

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Customer Problem Statement

None

Status

Assignee

Unassigned

Reporter

Nimisha Asthagiri

Labels

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Story Points

1

Epic Link

Components

Priority

CAT-2
Configure