Dear all,
I've setup my own instance of Hyperkitty working as archiver of a Mailman 3 server. It works fine but, sometimes, I get an email of a Django error:
Internal Server Error: /hyperkitty/list/my@lists.domain.eu/pop-threads
KeyError at /hyperkitty/list/my@lists.domain.eu/pop-threads 'file' Request Method: GET Django Version: 2.2.12 Python Executable: /usr/bin/python3 Python Version: 3.7.3 Traceback:
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.7/dist-packages/hyperkitty/lib/view_helpers.py" in inner 129. if not is_mlist_authorized(request, mlist):
File "/usr/local/lib/python3.7/dist-packages/hyperkitty/lib/view_helpers.py" in is_mlist_authorized 146. if mlist.list_id in get_subscriptions(request.user):
File "/usr/local/lib/python3.7/dist-packages/django_mailman3/lib/mailman.py" in get_subscriptions 130. _get_value, 60, version=2) # 1 minute
File "/usr/local/lib/python3.7/dist-packages/django/core/cache/backends/base.py" in get_or_set 167. default = default()
File "/usr/local/lib/python3.7/dist-packages/django_mailman3/lib/mailman.py" in _get_value 122. for member in mm_user.subscriptions
File "/usr/local/lib/python3.7/dist-packages/mailmanclient/restobjects/user.py" in subscriptions 66. 'members/find', data={'subscriber': address})
File "/usr/local/lib/python3.7/dist-packages/mailmanclient/restbase/connection.py" in call 112. error_msg, response, None)
During handling of the above exception (HTTP Error 500: <html> <head> <title>Internal Server Error</title> </head> <body> <h1><p>Internal Server Error</p></h1>
</body> </html> ), another exception occurred:
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/utils/deprecation.py" in __call__ 94. response = response or self.get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in inner 36. response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in response_for_exception 95. exc_info=sys.exc_info(),
File "/usr/local/lib/python3.7/dist-packages/django/utils/log.py" in log_response 228. exc_info=exc_info,
File "/usr/lib/python3.7/logging/__init__.py" in error 1412. self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python3.7/logging/__init__.py" in _log 1519. self.handle(record)
File "/usr/lib/python3.7/logging/__init__.py" in handle 1529. self.callHandlers(record)
File "/usr/lib/python3.7/logging/__init__.py" in callHandlers 1591. hdlr.handle(record)
File "/usr/lib/python3.7/logging/__init__.py" in handle 905. self.emit(record)
File "/usr/local/lib/python3.7/dist-packages/django/utils/log.py" in emit 119. reporter = ExceptionReporter(request, is_email=True, *exc_info)
File "/usr/local/lib/python3.7/dist-packages/django/views/debug.py" in __init__ 254. self.template_info = getattr(self.exc_value, 'template_debug', None)
File "/usr/lib/python3.7/tempfile.py" in __getattr__ 614. file = self.__dict__['file']
Exception Type: KeyError at /hyperkitty/list/my@lists.domain.eu/pop-threads Exception Value: 'file' Request information: USER: myuser
GET: No GET data
POST: No POST data
FILES: No FILES data
Where did I go wrong?
Best, Marco