Torge Riedel writes:
today I had the following error in my inbox:
KeyError: 'subject_prefix' AttributeError: 'MailingList' object has no attribute 'subject_prefix'
This isn't very helpful. Does this happen for all lists? A particular list? How long have you been running this version of Mailman 3 (time since last update)?
Is there anything in the logs from Mailman core (this error is coming from the client side of the REST API module)?
I checked the database,
Which database? It looks to me like subject_prefix is declared in both Mailman core and HyperKitty (I haven't checked Postorius). I'm not real familiar with this code, so it could be that eventually everything boils down to REST calls to Mailmman core, but it looks like Django's database is involved for HyperKitty.
there is a column "subject_prefix", so I feel it is something in the code causing the error.
Sure, but what? We eventually see this:
File "/opt/mailman/web/venv/lib/python3.6/site-packages/mailmanclient/restbase/connection.py", line 112, in call error_msg, response, None) urllib.error.HTTPError: HTTP Error 500: <html> <head> <title>Internal Server Error</title> </head> <body> <h1><p>Internal Server Error</p></h1>
</body> </html>
which is mailmanclient passing on the REST API's report that Mailman core is very confused. There should be a log message from core for this.