Skip to content
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

HTTP 406 Not Acceptable Errors #149

Closed
suhaasprasad opened this issue Nov 20, 2015 · 18 comments
Closed

HTTP 406 Not Acceptable Errors #149

suhaasprasad opened this issue Nov 20, 2015 · 18 comments

Comments

@suhaasprasad
Copy link

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')
@NickFranceschina
Copy link

we are seeing the same issue

@afrosimon
Copy link

Same here. We're also using sendgrid-django, for what it's worth.

@thinkingserious
Copy link
Contributor

@NickFranceschina
Copy link

we installed 1.5.18 last evening and still seeing the same problem

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

@thinkingserious
Copy link
Contributor

@NickFranceschina looks like we are going to need to dig deeper to figure this one out.

Here is what we need: Please email [email protected] and include the specific steps to reproduce (i.e. send X amount of emails, using the following code)

Thanks!

@codedumper
Copy link

Same problem here... What is the support issue number for this case ?

@thinkingserious
Copy link
Contributor

@cdurieux could you please also submit a detailed ticket? Currently, we can't reproduce this issue. Thanks!

@gsakkis
Copy link

gsakkis commented Nov 30, 2015

This is still happening for us after the upgrade. This is on Google App Engine in case it matters.

@NickFranceschina
Copy link

yes, we are also on Google App Engine. if I could send specific steps to reliably reproduce it, I would... but as OP stated, it's non-deterministic

@delikat
Copy link

delikat commented Dec 1, 2015

This is not fixed. It is still failing inconsistently for me on GAE.

@afrosimon
Copy link

I concur, still the same situation for us. Also on GAE.

@RahavLussato
Copy link

same here, also on GAE

@brandonmwest
Copy link
Contributor

This should be resolved for all GAE users now. Sorry for the trouble.

@nickdirienzo
Copy link

Thanks for fixing @brandonmwest. Just curious, what ended up being the problem?

@SanghviChirag
Copy link

SanghviChirag commented Apr 29, 2021

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.

@SofienM
Copy link

SofienM commented Jul 8, 2021

Hi,
We are facing the same issue. Sporadically and in a non deterministic way, we receive
HTTPError(<HTTPError 406: 'Not Acceptable'>)

Some precisions:

  • http-python-client version: 3.3.2
  • sendgrid: 6.7.0
  • First error on Apr 28th also (2021)

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

@Pixel-Jack
Copy link

Hello 💻
I have the exact same problem. My config is http-python-client version: 3.3.2, sendgrid: 6.7.0
And like @SanghviChirag when I retry it by hand it works.

@jacobg
Copy link

jacobg commented May 4, 2022

We just had this occur too whneing sending an email with sendgrid python client:

Failed to send message with http error status_code=406, reason=Not Acceptable, body=b'<html>\r\n<head><title>406 Not Acceptable</title></head>\r\n<body>\r\n<center><h1>406 Not Acceptable</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n'

Our software automatically retried the same exact request 8 seconds later, and it succeeded 202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests