Hello.
We experience a lot of 401 errors just after 28 October. Changing API key is not working. Could you say is that ok?
We are using sendgrid-python installed from pip like "pip install sendgrid".
Code:
sg = sendgrid.SendGridAPIClient(api_key=API_KEY)
subject = "Some subject"
from_email = "1@gmail.com"
to_email = "2@gmail.com"
content = Content('text/html', html content)
mail = Mail(Email(from_email), subject, Email(to_email), content)
response = sg.client.mail.send.post(request_body=mail.get())
msg, status = response.body, response.status_code
logging.info(status)
logging.info(msg)
Tried to set ENV variable but it doesn't help too.
Best regards,
Peter
Hello.
We experience a lot of 401 errors just after 28 October. Changing API key is not working. Could you say is that ok?
We are using sendgrid-python installed from pip like "pip install sendgrid".
Code:
Tried to set ENV variable but it doesn't help too.
Best regards,
Peter