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')
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: