{"action":"closed","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/242","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-python","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/242/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/242/events","html_url":"https://github.com/sendgrid/sendgrid-python/issues/242","id":186328849,"number":242,"title":"HTTP Error 401: Unauthorized","user":{"login":"RaiaN","id":2128080,"avatar_url":"https://avatars.githubusercontent.com/u/2128080?v=3","gravatar_id":"","url":"https://api.github.com/users/RaiaN","html_url":"https://github.com/RaiaN","followers_url":"https://api.github.com/users/RaiaN/followers","following_url":"https://api.github.com/users/RaiaN/following{/other_user}","gists_url":"https://api.github.com/users/RaiaN/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiaN/subscriptions","organizations_url":"https://api.github.com/users/RaiaN/orgs","repos_url":"https://api.github.com/users/RaiaN/repos","events_url":"https://api.github.com/users/RaiaN/events{/privacy}","received_events_url":"https://api.github.com/users/RaiaN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-31T16:22:58Z","updated_at":"2016-11-08T21:52:12Z","closed_at":"2016-11-08T21:52:12Z","body":"Hello. \r\nWe experience a lot of 401 errors just after 28 October. Changing API key is not working. Could you say is that ok?\r\nWe are using sendgrid-python installed from pip like \"pip install sendgrid\".\r\n\r\nCode:\r\n```\r\n            sg = sendgrid.SendGridAPIClient(api_key=API_KEY)\r\n            subject = \"Some subject\"\r\n            from_email = \"1@gmail.com\"\r\n            to_email = \"2@gmail.com\"\r\n            content = Content('text/html', html content)\r\n            mail = Mail(Email(from_email), subject, Email(to_email), content)\r\n            response = sg.client.mail.send.post(request_body=mail.get())\r\n            msg, status = response.body, response.status_code\r\n            logging.info(status)\r\n            logging.info(msg)\r\n```\r\n\r\nTried to set ENV variable but it doesn't help too.\r\n\r\nBest regards,\r\nPeter "}}
{"actor":{"display_login":"thinkingserious"}}