feinoujc / Mandrill.net

Mailchimp Transactional (Mandrill) api client for .NET
MIT License
70 stars 26 forks source link

SendTemplateAsync returns 406 Status Code #134

Closed Jicol95 closed 3 years ago

Jicol95 commented 3 years ago

Runtime: netcoreapp3.1 Package version: 7.2.0

Response from API seems to indicate that the request body is not in the correct format. However I'm not sure how this can happen as I assume that the Mandrill.net wrapper would handle this. The exception doesn't really give much away either, just specifies a generic http 406 error.

Do you have any suggestions as to why this would happen? Also, should the wrapper throw to prevent sending requests that would result in http 406?

Jicol95 commented 3 years ago

Apologies for the lack of information, I didn't have much to go on. After further investigation it looks like there is an issue running this wrapper from within an Azure App Service running on a standard plan. We have upgraded the app service.

smcl commented 2 years ago

Hey @Jicol95 - this is bit out of the blue we're hitting this issue too, did it ever reappear for you? I'm seeing it in one of our apps running in Azure Kubernetes Service, for a while all emails will fail then they'll start working again :-/