Title: same email with add_to breaks the entire function · Issue #299 · sendgrid/sendgrid-python · GitHub
Open Graph Title: same email with add_to breaks the entire function · Issue #299 · sendgrid/sendgrid-python
X Title: same email with add_to breaks the entire function · Issue #299 · sendgrid/sendgrid-python
Description: Issue Summary When sending the add_to method as shown in the docs and both emails happen to be the same personalization.add_to(Email("test1@example.com", "Example User")) personalization.add_to(Email("test1@example.com", "Example User"))...
Open Graph Description: Issue Summary When sending the add_to method as shown in the docs and both emails happen to be the same personalization.add_to(Email("test1@example.com", "Example User")) personalization.add_to(Ema...
X Description: Issue Summary When sending the add_to method as shown in the docs and both emails happen to be the same personalization.add_to(Email("test1@example.com", "Example User")) person...
Opengraph URL: https://github.com/sendgrid/sendgrid-python/issues/299
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"same email with add_to breaks the entire function ","articleBody":"#### Issue Summary\r\n\r\nWhen sending the add_to method as shown in the docs and both emails happen to be the same\r\n\r\n```\r\n personalization.add_to(Email(\"test1@example.com\", \"Example User\"))\r\n personalization.add_to(Email(\"test1@example.com\", \"Example User\"))\r\n```\r\n\r\nThe entire function breaks and the backtrace makes it really difficult to diagnose. Combined with the other issues using the add_bcc it can make solving a very simple problem quite time consuming. \r\n\r\n\r\nBacktrace is \r\n\r\n```\r\nFile \"/var/task/python_http_client/client.py\", line 204, in http_request\r\nreturn Response(self._make_request(opener, request))\r\nFile \"/var/task/python_http_client/client.py\", line 138, in _make_request\r\nreturn opener.open(request)\r\nFile \"/usr/lib64/python2.7/urllib2.py\", line 435, in open\r\nresponse = meth(req, response)\r\nFile \"/usr/lib64/python2.7/urllib2.py\", line 548, in http_response\r\n'http', request, response, code, msg, hdrs)\r\nFile \"/usr/lib64/python2.7/urllib2.py\", line 473, in error\r\nreturn self._call_chain(*args)\r\nFile \"/usr/lib64/python2.7/urllib2.py\", line 407, in _call_chain\r\nresult = func(*args)\r\nFile \"/usr/lib64/python2.7/urllib2.py\", line 556, in http_error_default\r\nraise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\r\nHTTPError: HTTP Error 400: Bad Request\r\n```","author":{"url":"https://github.com/iainwatt","@type":"Person","name":"iainwatt"},"datePublished":"2017-03-13T18:23:16Z","url":"https://github.com/sendgrid/sendgrid-python/issues/299"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f1c351d1-cd6d-4683-4347-e6cc8d5c1bfb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6C2:14700E:2E1D877:3A8DBC7:6B01BB11 |
| html-safe-nonce | 83989b2f9e5ea927d53059c4d891a6d0cde56fce0baa3f58f6ac55da50a8be11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkMyOjE0NzAwRToyRTFEODc3OjNBOERCQzc6NkIwMUJCMTEiLCJ2aXNpdG9yX2lkIjoiNjEwODY2ODc0MzUwMjY0MTkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc9d9dfb02a8ee57f83da119428c585f44b2bf461dfcdde012c29edec635902e |
| hovercard-subject-tag | issue:213855635 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sendgrid/sendgrid-python/299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45dde1ddd591bb975f2e418b0cef1c660ef534e41a7f3c624dfe80caa2d66048/sendgrid/sendgrid-python/issues/299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45dde1ddd591bb975f2e418b0cef1c660ef534e41a7f3c624dfe80caa2d66048/sendgrid/sendgrid-python/issues/299 |
| og:image:alt | Issue Summary When sending the add_to method as shown in the docs and both emails happen to be the same personalization.add_to(Email("test1@example.com", "Example User")) personalization.add_to(Ema... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iainwatt |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/sendgrid/sendgrid-python git https://github.com/sendgrid/sendgrid-python.git |
| octolytics-dimension-user_id | 181234 |
| octolytics-dimension-user_login | sendgrid |
| octolytics-dimension-repository_id | 3546794 |
| octolytics-dimension-repository_nwo | sendgrid/sendgrid-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3546794 |
| octolytics-dimension-repository_network_root_nwo | sendgrid/sendgrid-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width