On 9/21/22 14:12, gioklr71@gmail.com wrote:
This is the code that produce the error:
for mail, nom in email_D.items(): # Loop over new email print(info.subscribe(mail, nom, pre_verified=True, pre_confirmed=True, send_welcome_message=False, pre_approved=True))
THIS IS THE ERROR MESSAGGE:
Traceback (most recent call last): File "./fill_list.py", line 74, in <module> print(info.subscribe(mail, nom, pre_verified=True, pre_confirmed=True, send_welcome_message=False, pre_approved=True)) File "/usr/local/lib/python3.6/site-packages/mailmanclient/restobjects/mailinglist.py", line 492, in subscribe response, content = self._connection.call('members', data) File "/usr/local/lib/python3.6/site-packages/mailmanclient/restbase/connection.py", line 161, in call error_msg, response, None) urllib.error.HTTPError: HTTP Error 400: Invalid Parameter "subscriber": .
This code works perfectly before security update from provider.... Never changed from client side.
I've tried update mailman client:
Mailman client is not the issue. The issue is the REST endpoint
'members' doesn't like the value of subscriber
in the post data. In
particular, it looks like you have an entry in email_D.items()
with an
empty value for mail
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan