On Tue, Mar 12, 2019, at 10:11 AM, Mark Sapiro wrote:
> > ERROR: Internal Server Error: /postorius/lists/
> > Traceback (most recent call last):
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py",
> > line 34, in inner
> >     response = get_response(request)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py",
> > line 126, in _get_response
> >     response = self.process_exception_by_middleware(e, request)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py",
> > line 124, in _get_response
> >     response = wrapped_callback(request, *callback_args, **callback_kwargs)
> >   File "/root/mailman/postorius/src/postorius/views/list.py", line 696, in
> > list_index
> >     return list_index_authenticated(request)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py",
> > line 21, in _wrapped_view
> >     return view_func(request, *args, **kwargs)
> >   File "/root/mailman/postorius/src/postorius/views/list.py", line 652, in
> > list_index_authenticated
> >     choosable_domains = _get_choosable_domains(request)
> >   File "/root/mailman/postorius/src/postorius/views/list.py", line 558, in
> > _get_choosable_domains
> >     domains = Domain.objects.all()
> >   File "/root/mailman/postorius/src/postorius/models.py", line 77, in all
> >     return getattr(get_mailman_client(), self.resource_name_plural)
> >   File "/root/mailman/mailmanclient/src/mailmanclient/client.py", line 190,
> > in domains
> >     response, content = self._connection.call('domains')
> >   File
> > "/root/mailman/mailmanclient/src/mailmanclient/restbase/connection.py",
> > line 102, in call
> >     response.content, response, None)
> > urllib.error.HTTPError: HTTP Error 500: b'A server error occurred.  Please
> > contact the administrator.'
> > 
> > During handling of the above exception, another exception occurred:
> > 
> > Traceback (most recent call last):
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py",
> > line 34, in inner
> >     response = get_response(request)
> >   File "/root/mailman/postorius/src/postorius/middleware.py", line 39, in
> > __call__
> >     return self.get_response(request)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py",
> > line 36, in inner
> >     response = response_for_exception(request, exc)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py",
> > line 90, in response_for_exception
> >     response = handle_uncaught_exception(request,
> > get_resolver(get_urlconf()), sys.exc_info())
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py",
> > line 125, in handle_uncaught_exception
> >     return debug.technical_500_response(request, *exc_info)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py",
> > line 89, in technical_500_response
> >     reporter = ExceptionReporter(request, exc_type, exc_value, tb)
> >   File
> > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py",
> > line 254, in __init__
> >     self.template_info = getattr(self.exc_value, 'template_debug', None)
> >   File "/usr/lib/python3.6/tempfile.py", line 618, in __getattr__
> >     file = self.__dict__['file']
> > KeyError: 'file'
> > ERROR: "GET /postorius/lists/ HTTP/1.1" 500 134330
> 
> 
> where this says it was a GET of /postorius/lists/ that produced the error.

This is most probably related to recent changes in HEAD related to FILTER_VHOST.

See [1] for a proposed fix.

[1]: https://gitlab.com/mailman/postorius/merge_requests/392

I suspect one would see if they don't have any domains created and try to 
access the /postorius/lists/.


-- 
  thanks,
  Abhilash Raj (maxking)
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to