Title: python-http-client should define it's own error class which can be imported by consuming libraries · Issue #16 · sendgrid/python-http-client · GitHub
Open Graph Title: python-http-client should define it's own error class which can be imported by consuming libraries · Issue #16 · sendgrid/python-http-client
X Title: python-http-client should define it's own error class which can be imported by consuming libraries · Issue #16 · sendgrid/python-http-client
Description: Issue Summary If the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError. For clients consuming this library, they now need to know that it was implemented in urllib, import that module into their application ...
Open Graph Description: Issue Summary If the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError. For clients consuming this library, they now need to know that it was implemented in urllib, im...
X Description: Issue Summary If the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError. For clients consuming this library, they now need to know that it was implemented in urllib, im...
Opengraph URL: https://github.com/sendgrid/python-http-client/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"python-http-client should define it's own error class which can be imported by consuming libraries","articleBody":"#### Issue Summary\r\n\r\nIf the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError.\r\nFor clients consuming this library, they now need to know that it was implemented in urllib, import that module into their application and handle the error.\r\n\r\nIdeally, a consuming application only needs to know about python-http-client and not how urllib was implemented in order to handle common place http errors.\r\n\r\n#### Steps to Reproduce\r\n\r\n1. make an api call that returns anything other than HTTP2xx\r\n2. attempt to handle error raised without importing urllib and without doing a catch all.\r\n\r\n\r\n#### Technical details:\r\n\r\n* python-http-client Version: master (latest commit: [commit number])\r\n* Python Version: all\r\n","author":{"url":"https://github.com/w-","@type":"Person","name":"w-"},"datePublished":"2017-05-20T06:44:48Z","url":"https://github.com/sendgrid/python-http-client/issues/16"}
| 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:2564bb1a-fec0-8164-47c2-5fb19662073b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D392:3CBB3E:1F34E55:27CF9AB:6B01AE85 |
| html-safe-nonce | 2dbb3e4c7ae8a63017da477ab0ae4e8d3daf30271ed42e9b2a9af03fbfd31632 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzkyOjNDQkIzRToxRjM0RTU1OjI3Q0Y5QUI6NkIwMUFFODUiLCJ2aXNpdG9yX2lkIjoiNDY5NDE0NjkzOTg3OTUzNDIxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02106670851903720ff307f9c1e1b5733bcc85cd04d2e0479ad9ef98a79ffef1 |
| hovercard-subject-tag | issue:230134884 |
| 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/python-http-client/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7e8a663d47beb6fa16740e7716ad74b487b61c23ba49f3957257ae96f848650/sendgrid/python-http-client/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7e8a663d47beb6fa16740e7716ad74b487b61c23ba49f3957257ae96f848650/sendgrid/python-http-client/issues/16 |
| og:image:alt | Issue Summary If the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError. For clients consuming this library, they now need to know that it was implemented in urllib, im... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | w- |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/sendgrid/python-http-client git https://github.com/sendgrid/python-http-client.git |
| octolytics-dimension-user_id | 181234 |
| octolytics-dimension-user_login | sendgrid |
| octolytics-dimension-repository_id | 52136436 |
| octolytics-dimension-repository_nwo | sendgrid/python-http-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52136436 |
| octolytics-dimension-repository_network_root_nwo | sendgrid/python-http-client |
| 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