TypeError: unhashable type: 'list' on set_recipient_status #217
Replies: 1 comment 2 replies
-
@danieltellez for this error to occur, something has gone very wrong earlier in the code. So you are correct, patching set_recipient_status is not the best way to resolve this. We should try to find the root problem and fix it there. The message_id for each recipient should always be a single scalar value, never a list. This means something is going wrong in the code that parses recipient status out of SendinBlue's API response: For that messageId to end up a list, SendinBlue would have to be returning an array as the value of the messageId field, rather than a single string. That wouldn't match their API documentation. (We also have live integration tests that run weekly, to catch undocumented changes to ESP API behavior. The tests that ran last Thursday didn't catch any problems like that.) So how could this be happening?
|
Beta Was this translation helpful? Give feedback.
-
Hi,
With:
django-anymail==8.1
django-mailer==2.1
and using SendInBlue as ESP, I am getting this error on set_recipient_status:
TypeError: unhashable type: 'list'
I've patched the code of this function as this:
I think this isn't the best way to resolve it, so I'll thank you very much if anyone can give me a clue why is this happening. Is it maybe some misconfiguration?
Beta Was this translation helpful? Give feedback.
All reactions