500 Internal Server Error from robotic GET of lists/LIST.ID/anonymous_subscribe
A robot performed the following GET
46.229.168.66 - - [23/May/2017:16:52:17 -0400] "GET /mm3/mailman3/lists/geopython.python.org/anonymous_subscribe HTTP/1.1" 500 3581 "-" "Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)"
which resulted in the 500 with this traceback.
ERROR 2017-05-23 20:52:17,398 base 24163 140215985370880 Internal Server Error:
/mm3/mailman3/lists/geopython.python.org/anonymous_subscribe
Traceback (most recent call last):
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/generic.py", line 59, in dispatch
return super(MailingListView, self).dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/views/eneric/base.py", line 158, in get
return self.render_to_response(context)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/views/generic/base.py", line 132, in render_to_response
template=self.get_template_names(),
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg/django/views/generic/base.py", line 145, in get_template_names
"TemplateResponseMixin requires either a definition of "
ImproperlyConfigured: TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()'
On the one hand, this is not something we really care about, but on the other, I don't think we should be throwing uncaught exceptions on things we can probably defend against.
Note this is really Django 1.9.7. /opt/mailman/mailman-bundler/eggs/Django-1.8.13-py2.7.egg is a symlink to /opt/mailman/mailman-bundler/venv/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg
Edited by Mark Sapiro