Hi there,
i got the following error while trying to open a file as shown below.
the associated log is as shown below
2021-05-10 15:32:31,039 ERROR Internal Server Error: /a/fmoh-echis/apps/view/49a390c8938c90f81c00f0a65d00bc27/
Traceback (most recent call last):
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/django/views/decorators/http.py", line 40, in inner
return func(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/domain/decorators.py", line 119, in _inner
return call_view()
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/domain/decorators.py", line 88, in call_view
def call_view(): return view_func(req, domain_name, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/views/apps.py", line 666, in view_app
return view_generic(request, domain, app_id, release_manager=True)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/ex-submodules/dimagi/utils/couch/resource_conflict.py", line 20, in new_fn
return fn(*args, **kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/views/view_generic.py", line 161, in view_generic
context.update(get_releases_context(request, domain, app_id))
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/views/releases.py", line 219, in get_releases_context
multimedia_state = app.check_media_state()
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/hqmedia/models.py", line 982, in check_media_state
for media in self.all_media():
File "/home/cchq/www/echis/releases/2021-05-10_13.14/python_env-3.6/lib/python3.6/site-packages/memoized.py", line 20, in _memoized
cache[key] = value = fn(*args, **kwargs)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/hqmedia/models.py", line 777, in all_media
form.validate_form()
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/models.py", line 1097, in validate_form
form = self.wrapped_xform()
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/models.py", line 1089, in wrapped_xform
return XForm(self.source)
File "/home/cchq/www/echis/releases/2021-05-10_13.14/corehq/apps/app_manager/models.py", line 722, in get
source = source.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 436903: invalid start byte