5

Im using Mandrill-dotnet 2.4.1.0 to send transactional emails from my C# application. Every so often I get an Error saying: Serialization Error to Post: messages/send-template.json.

When checking Mandrill the email I have tried to send has been sent, so it might be a a problem with the data in the response. I can sometimes see that there is a backlog at the time of the error, but I cant say for sure that is the problem. I have a hard time finding out what the source of this error is and would appreciate any help in finding a way to resolve this as it seems hard to get to the actual error inside the Mandrill-dotnet code.

Best Regards Tobias

Tobis
  • 117
  • 1
  • 8

1 Answers1

1

I see that in Mandrill-dotnet version 2.4.1, the JsonException was just swallowed and turned into a MandrillException (which we can check in the sourcecode on github)

However, I think you have already made a pull request and fixed this for version 2.4.181.

From what I can tell so far, it seems that the source of the error is transient: similar content will be posted through to the Mandrill API absolutely fine without issue before and after the errors occur, but a clump will fail serialization.

Did you uncover anything further useful with the additional improved exception handling you added to Mandrill-dotnet?

Henry C
  • 4,781
  • 4
  • 43
  • 83
  • I got a lot of these errors all of a sudden today after not changing anything in a while (eg. I didn't change my template). Wondering if you had the same today - that might suggest an issue their end today. Incidentally I was on a version below 2.4.181 but just upgraded now. – Simon_Weaver Apr 11 '17 at 21:40