400 error on held messages
I've got a couple of lists throwing this error when attempting to view "Held Messages"
HTTP Error 400: invalid literal for int() with base 10: 'oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n'
Any ideas on what could be causing this? Database corruption of some kind?
Dan Caballero Caltech
On 10/3/23 17:31, Dan Caballero wrote:
I've got a couple of lists throwing this error when attempting to view "Held Messages"
HTTP Error 400: invalid literal for int() with base 10: 'oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n'
Any ideas on what could be causing this? Database corruption of some kind?
What if anything is in your Django logs for this?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Here is the stack trace from the mailmansuite.log.
ERROR 2023-10-04 10:59:03,587 2091 postorius Un-handled exception: HTTP Error 400: invalid literal for int() with base 10: 'oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n' Traceback (most recent call last): File "/opt/mailmanve/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/opt/mailmanve/lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view return view_func(request, *args, **kwargs) File "/opt/mailmanve/lib/python3.9/site-packages/postorius/auth/decorators.py", line 63, in wrapper return fn(*args, **kwargs) File "/opt/mailmanve/lib/python3.9/site-packages/postorius/views/list.py", line 864, in list_moderation held_messages = paginate( File "/opt/mailmanve/lib/python3.9/site-packages/django_mailman3/lib/paginator.py", line 71, in paginate objects = paginator.page(page_num) File "/opt/mailmanve/lib/python3.9/site-packages/django_mailman3/lib/paginator.py", line 47, in page result = self.function(count=self.per_page, page=number) File "/opt/mailmanve/lib/python3.9/site-packages/mailmanclient/restobjects/mailinglist.py", line 164, in get_held_page return Page(self._connection, url, HeldMessage, count, page) File "/opt/mailmanve/lib/python3.9/site-packages/mailmanclient/restbase/page.py", line 37, in __init__ self._create_page() File "/opt/mailmanve/lib/python3.9/site-packages/mailmanclient/restbase/page.py", line 62, in _create_page response, content = self._connection.call(self._build_url()) File "/opt/mailmanve/lib/python3.9/site-packages/mailmanclient/restbase/connection.py", line 160, in call raise HTTPError(params.get('url'), response.status_code, urllib.error.HTTPError: HTTP Error 400: invalid literal for int() with base 10: 'oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n'
Dan Caballero wrote:
I've got a couple of lists throwing this error when attempting to view "Held Messages"
HTTP Error 400: invalid literal for int() with base 10:
'oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n'
Based on your traceback, all I can think is you are posting a garbled
URL with a query fragment of page=
or count=
with that value.
E.g.
https://example.com/mailman3/lists/LIST_ID/held_messages?page=oAAAANSUhEUgAACfYAAAiVBORw0KGgoAAAANSUhEUgAACfYAAAYKCAIAAAAQvT9CAAAACXBIWXMAAC4jAAAuIwF4pT92AAAg\r\n
Is it possible that you have some URL like that saved somewhere?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I'm only using the interface to access the held messages. There's nothing in the browser except for the URL to the held message page. I had this issue on 2 lists. One of them no longer has the issue. I had tried to clean up the bad ids via Mailman shell but didn't seem to find any.
However, this morning after restarting Mailman the problem is no longer on that list.
participants (2)
-
Dan Caballero
-
Mark Sapiro