{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/149","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/149/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/149/events","html_url":"https://github.com/sendgrid/sendgrid-python/issues/149","id":117958196,"number":149,"title":"HTTP 406 Not Acceptable Errors","user":{"login":"suhaasprasad","id":1652853,"avatar_url":"https://avatars.githubusercontent.com/u/1652853?v=3","gravatar_id":"","url":"https://api.github.com/users/suhaasprasad","html_url":"https://github.com/suhaasprasad","followers_url":"https://api.github.com/users/suhaasprasad/followers","following_url":"https://api.github.com/users/suhaasprasad/following{/other_user}","gists_url":"https://api.github.com/users/suhaasprasad/gists{/gist_id}","starred_url":"https://api.github.com/users/suhaasprasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhaasprasad/subscriptions","organizations_url":"https://api.github.com/users/suhaasprasad/orgs","repos_url":"https://api.github.com/users/suhaasprasad/repos","events_url":"https://api.github.com/users/suhaasprasad/events{/privacy}","received_events_url":"https://api.github.com/users/suhaasprasad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-20T03:27:13Z","updated_at":"2015-11-23T21:09:15Z","closed_at":null,"body":"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:\r\n\r\n```\r\nSendGridClientError: (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')\r\n```"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/comments/159064735","html_url":"https://github.com/sendgrid/sendgrid-python/issues/149#issuecomment-159064735","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/149","id":159064735,"user":{"login":"afrosimon","id":333396,"avatar_url":"https://avatars.githubusercontent.com/u/333396?v=3","gravatar_id":"","url":"https://api.github.com/users/afrosimon","html_url":"https://github.com/afrosimon","followers_url":"https://api.github.com/users/afrosimon/followers","following_url":"https://api.github.com/users/afrosimon/following{/other_user}","gists_url":"https://api.github.com/users/afrosimon/gists{/gist_id}","starred_url":"https://api.github.com/users/afrosimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afrosimon/subscriptions","organizations_url":"https://api.github.com/users/afrosimon/orgs","repos_url":"https://api.github.com/users/afrosimon/repos","events_url":"https://api.github.com/users/afrosimon/events{/privacy}","received_events_url":"https://api.github.com/users/afrosimon/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T21:09:15Z","updated_at":"2015-11-23T21:09:15Z","body":"Same here. We're also using sendgrid-django, for what it's worth."}}