SendInBlue API .NET6 Core Razor Pages in C# AddContactToList catching and throwing error

Viewed 371

I a using the exact code here https://developers.sendinblue.com/reference/addcontacttolist-1 to add a user to a list. It all works, user is created/updated (if exists) then the user is added to the list. However, when adding to the list it throws an error.

Error calling AddContactToList: {"code":"invalid_parameter","message":"Contact already in list and/or does not exist"}

enter image description here

Their code shows a display result in JSON which will never get hit because it throws at the Add method.

1 Answers
Related