-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET template method sometimes returns 406 #1041
Comments
We were seeing this yesterday: one of our four environments in Azure was getting the 406 errors. Working fine all morning, majority errored during the afternoon, and then cleared back up sometime last night/this morning. I am guessing the problem was not with the API package but rather something on the SendGrid server side. Hopefully it is an anomaly and doesn't resurface. |
Hello @gastonmuijtjens, Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at https://support.sendgrid.com. Thank you! SendGrid DX Team |
@thinkingserious Response body:
Here is a similar issue reported for the Python version of SendGrid's library back in 2015, which was fixed by patching the library itself: |
@hhermas I don't see any patches to fix the problem in python and users still reported issue after the mentioned release. This is something that requires assistance from support as linked above. |
Issue Summary
I have a service running in Azure which daily calls the
GET templates
(https://sendgrid.com/docs/API_Reference/Web_API_v3/Transactional_Templates/templates.html#-GET) endpoint for the same template id using this C# Nuget package (see code example below). Approximately 20-40% of the calls for exactly the same template id fail due to SendGrid returning a 406. Most of the times the calls work just fine though, it is very unpredictable.This might be an issue on the SendGrid server side, rather than a specific issue for this Nuget Package.
Steps to Reproduce
I am not able to reproduce this issue locally. It happens at some moments within Azure.
GET templates
endpoint with an existing template idCode Snippet
The following code runs for the same template id (which I'm sure exists within the template manager in SendGrid).
Dependency injection configuration:
Exception/Log
SendGrid gives a 406 response.
Technical details:
The text was updated successfully, but these errors were encountered: