Title: create_unit should check fleet's response code instead of executing a get_unit call · Issue #5 · cnelson/python-fleet · GitHub
Open Graph Title: create_unit should check fleet's response code instead of executing a get_unit call · Issue #5 · cnelson/python-fleet
X Title: create_unit should check fleet's response code instead of executing a get_unit call · Issue #5 · cnelson/python-fleet
Description: Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404) Since fleet already returns a response...
Open Graph Description: Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404...
X Description: Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404...
Opengraph URL: https://github.com/cnelson/python-fleet/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"create_unit should check fleet's response code instead of executing a get_unit call","articleBody":"Currently `create_unit` [executes a `get_unit` call](https://github.com/cnelson/python-fleet/blob/686ce980d919f57f18bef1f3aed8dcfe1661f667/fleet/v1/client.py#L503) after it has created the unit which makes `create_unit` fail sometimes with the following error message: `Unable to create unit: unit does not exist (404)`\r\n\r\nSince fleet already returns a [response code](https://coreos.com/fleet/docs/latest/api-v1.html#response) when handling units `create_unit` should simply check this response code and not call `get_unit`.","author":{"url":"https://github.com/simonvanderveldt","@type":"Person","name":"simonvanderveldt"},"datePublished":"2016-12-07T12:30:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/5/python-fleet/issues/5"}
| 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:54cbe74d-7ca6-1bad-d4d2-c510b3765852 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D164:354BDC:3DC3:5692:69789A88 |
| html-safe-nonce | a24759f3fccdc43f220caa023d8f8ce940fc96937f762d96e21c6e45806466a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTY0OjM1NEJEQzozREMzOjU2OTI6Njk3ODlBODgiLCJ2aXNpdG9yX2lkIjoiMzUzMzU4MTQ0MTQzMjA2NjY5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d49bbd53378acc07b71b248ea6ef45f4dc69f708af3188c236cf7270cf1be69 |
| hovercard-subject-tag | issue:194037310 |
| 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/cnelson/python-fleet/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17ab6f05b69be4e25838f63ab82e9006a47a4b8b2285d11bc49256260173db99/cnelson/python-fleet/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17ab6f05b69be4e25838f63ab82e9006a47a4b8b2285d11bc49256260173db99/cnelson/python-fleet/issues/5 |
| og:image:alt | Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simonvanderveldt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/cnelson/python-fleet git https://github.com/cnelson/python-fleet.git |
| octolytics-dimension-user_id | 604163 |
| octolytics-dimension-user_login | cnelson |
| octolytics-dimension-repository_id | 31557933 |
| octolytics-dimension-repository_nwo | cnelson/python-fleet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31557933 |
| octolytics-dimension-repository_network_root_nwo | cnelson/python-fleet |
| 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 | 14920c7cb7d7c207b5e72684d0e6f23b65b849b3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width