SocialGouv / recosante

https://recosante.beta.gouv.fr/
Apache License 2.0
6 stars 1 forks source link

Handle Flagged status=Declined contacts during email campaigns #49

Open paulsouche opened 1 year ago

paulsouche commented 1 year ago

Since April 19th the batch update contacts is broken on Brevo because of contacts flagged status declined in Brevo and still in our database.

The issue is that the Brevo API is returning 400 Http response if one faulty contact is present in the list, not updating the rest of the contacts.

In consequence, we cannot just ignore the error as a workaround. We could remove the faulty contacts in our database but the issue will raise again once new contacts flagged as declined.

revolunet commented 1 year ago

Looks like there is some preventive contact deactivation in the code but doesnt work for some reason. Wondering if contact.emailBlacklisted is the same thing as status: Declined in the UI. looks like its not.

paulsouche commented 1 year ago

Faulty contacts have been deleted in database this day