Title: API errors handling is incorrect · Issue #1 · koty/python-stackpath · GitHub
Open Graph Title: API errors handling is incorrect · Issue #1 · koty/python-stackpath
X Title: API errors handling is incorrect · Issue #1 · koty/python-stackpath
Description: There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77 This should be resp['status'] and resp['error']
Open Graph Description: There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77 This ...
X Description: There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77 This ...
Opengraph URL: https://github.com/koty/python-stackpath/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API errors handling is incorrect","articleBody":"There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77\r\n\r\nThis should be `resp['status']` and `resp['error']`\r\n","author":{"url":"https://github.com/olegwtf","@type":"Person","name":"olegwtf"},"datePublished":"2017-12-04T12:50:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/python-stackpath/issues/1"}
| 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:7ca77622-e6e6-ba18-6887-c6e021b61f8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1B8:2A9EAA:44ED0E:5CFE9C:6A4D30F4 |
| html-safe-nonce | 02aef79e99bcedf8b43b47064e436acc2ce92382c58738cabdf040f949f280c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUI4OjJBOUVBQTo0NEVEMEU6NUNGRTlDOjZBNEQzMEY0IiwidmlzaXRvcl9pZCI6IjExMTU3OTMzMzA4ODc1MzY4ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a6d7c698a3e5e231952b5ef9b3541afd56151a2feff7ab45343fad9ce7e8f2bd |
| hovercard-subject-tag | issue:278984857 |
| 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/koty/python-stackpath/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ff9f9672bab275edaeffeb088740b201ffc79dd97ddd4adddec2548b7b40819/koty/python-stackpath/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ff9f9672bab275edaeffeb088740b201ffc79dd97ddd4adddec2548b7b40819/koty/python-stackpath/issues/1 |
| og:image:alt | There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77 This ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | olegwtf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/koty/python-stackpath git https://github.com/koty/python-stackpath.git |
| octolytics-dimension-user_id | 342366 |
| octolytics-dimension-user_login | koty |
| octolytics-dimension-repository_id | 85909300 |
| octolytics-dimension-repository_nwo | koty/python-stackpath |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85909300 |
| octolytics-dimension-repository_network_root_nwo | koty/python-stackpath |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width