sendgrid-python: HTTP 406 Not Acceptable Errors
I’m seeing a lot of 406 errors being returned recently when trying to send mail. It’s strange because I don’t see where the “Accepts” header is being added to the requests made by this library, which from my understanding is what would be the cause of an HTTP 406 error. What’s also odd is that it happens non-deterministically, where sometimes the message fails with this 406 error and other times the same message will succeed without issue:
SendGridClientError: (406, '<html>\r\n<head><title>406 Not Acceptable</title></head>\r\n<body bgcolor="white">\r\n<center><h1>406 Not Acceptable</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n')
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 19 (4 by maintainers)
Hi, We are still facing this issue on GAE.
Interesting thing is, all errored emails were successfully sent after retrying again.
Please follow up and rectify it.
Hi, We are facing the same issue. Sporadically and in a non deterministic way, we receive
HTTPError(<HTTPError 406: 'Not Acceptable'>)Some precisions:
And the messages are not sent in our cases ! Could you reopen the issue and investigate plz ? Let me know what I can send you to help you understand what’s happening
Thanks for fixing @brandonmwest. Just curious, what ended up being the problem?