Error while trying to add remote reports to the local

HI @Ali_Flaming and @CharlSmit , Yes i have been able to run the script yesterday found missing multimedia files and updated the missing file based on the script now we don't have missing file on the server but while trying to pull to the latest version of the application from cloud(commcare) it responds 500 , error i have been able to investigate to get the logs here is attached logs while pulling `Traceback (most recent call last):
File

“/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/exception.py”, line 47, in inner
  response = get_response(request)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/base.py”, line 181, in _get_response
  response = wrapped_callback(request, *callback_args, **callback_kwargs)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/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/2022-10-02_13.58/corehq/apps/domain/decorators.py”, line 111, in _inner
  return call_view()
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/domain/decorators.py”, line 84, in call_view
  def call_view(): return view_func(req, domain_name, *args, **kwargs)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/users/decorators.py”, line 45, in _inner
  return view_func(request, domain, *args, **kwargs)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/apps.py”, line 1047, in pull_upstream_app
  update_linked_app(app, upstream_app_id, request.couch_user.get_id)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 364, in update_linked_app
  app = overwrite_app(app, master_build, report_map)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 197, in overwrite_app
  wrapped_app = _update_forms(wrapped_app, master_build, ids_map)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 221, in _update_forms
  return new_wrapped_app.save_attachments(attachments, save)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4643, in save_attachments
  self.put_attachment(attachment, name)
 File “/usr/lib/python3.9/contextlib.py”, line 126, in __exit__
  next(self.gen)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 268, in atomic_blobs_context
  six.reraise(typ, exc, tb)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/six.py”, line 719, in reraise
  raise value
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 256, in atomic_blobs_context
  (self.save if save is None else save)()
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4841, in save
  super(Application, self).save(*args, **kwargs)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4696, in save
  super(ApplicationBase, self).save(**params)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4118, in save
  super(LazyBlobDoc, self).put_attachment(name=name, **info)
 File “/usr/lib/python3.9/contextlib.py”, line 126, in __exit__
  next(self.gen)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 268, in atomic_blobs_context
  six.reraise(typ, exc, tb)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/six.py”, line 719, in reraise
  raise value
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 256, in atomic_blobs_context
  (self.save if save is None else save)()
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4112, in super_save
  super(LazyBlobDoc, self).save(**params)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/couchdbkit/schema/base.py”, line 134, in save
  db.save_doc(doc, **params)
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/couchdbkit/client.py”, line 523, in save_doc
  put_resp.raise_for_status()
 File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/requests/models.py”, line 943, in raise_for_status
  raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://172.x.x.x:25984/commcarehq__apps/49a390c8938c90f81c00f0a65d00bc27`