HTTPError in message moderation for non-members
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Postorius |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, I was trying to send a msg by no member id but I am getting http error.
>>> client.domains
[<Domain "example.net">, <Domain "example.org">, <Domain "domain.org">]
>>> example = client.
>>> example
<Domain "domain.org">
>>> test_one = example.
>>> test_one
<List "<email address hidden>">
>>> msg
'From: <email address hidden>\nTo: <email address hidden>\nSubject: Something\
>>> msg = """From: <email address hidden>
... To: <email address hidden>
... Subject: Something
... Message-ID: <moderated_01>
...
... Some text.
...
... """
>>> inq = client.queues['in']
>>> inq.inject(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
self.
File "/home/
raise HTTPError(url, response.status, content, response, None)
urllib2.HTTPError: HTTP Error 400: No such list: test-one.
>>>
Hello Ashish,
I believe you're getting that error due to an invalid list id when calling inq.inject(). Can you run test_one.list_id before performing the inject, and use that result string as the inject's first parameter?
Cheers,
Ana