On Sat, Mar 9, 2019, at 8:25 AM, Mark Sapiro wrote:
On 3/8/19 9:12 PM, ARPIT sharma wrote:
Same problem anyone found fix for this?
On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:
I am also facing the same issue as KeyError 'file'. The complete traceback is shown below. Can someone please help me on this? KeyError at /postorius/lists/
'file'
For all of you who *think* you have the same problem, you may all be having different issues. This KeyError is a secondary error that occurs in Django's processing of the original exception. When you look at the full traceback, you'll see in it something similar to the following:
To add to what Mark said, usually, KeyError is caused by missing log file or bad settings in Django. Some exception is raised and Django tries to log it to a "file" which is looks for in the LOGGING['loggers'] in exmaple_project/settings.py.
Please make sure that you figure out which logger are you missing. From looking at the traceback, I see that it is "django.template" logger. Which should ideally not cause problems, but it looks like it is.
...
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in _get_choosable_domains 1.
domains = Domain.objects.all() ...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/models.py in all 1.
return getattr(get_mailman_client(),
self.resource_name_plural)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py in domains 1.
response, content = self._connection.call('domains') ...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py in call 1.
response.content, response, None) ...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- During handling of the above exception (HTTP Error 500: b'A server error occurred. Please contact the administrator.'), another exception occurred: ...
The line above and the traceback above that are the relevant things for your issue. Everything that follows is not relevant.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-leave@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
-- thanks, Abhilash Raj (maxking)