Title: How to handle unexpected responses · Issue #10 · github/remote-input-element · GitHub
Open Graph Title: How to handle unexpected responses · Issue #10 · github/remote-input-element
X Title: How to handle unexpected responses · Issue #10 · github/remote-input-element
Description: I am new to using remote-input-element and am trying to figure out a way to properly handle unexpected HTTP responses. It looks like this component will always replace the target container with the HTTP response body, however if the serv...
Open Graph Description: I am new to using remote-input-element and am trying to figure out a way to properly handle unexpected HTTP responses. It looks like this component will always replace the target container with the...
X Description: I am new to using remote-input-element and am trying to figure out a way to properly handle unexpected HTTP responses. It looks like this component will always replace the target container with the...
Opengraph URL: https://github.com/github/remote-input-element/issues/10
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to handle unexpected responses","articleBody":"I am new to using `remote-input-element` and am trying to figure out a way to properly handle unexpected HTTP responses. \r\n\r\nIt looks like this component will [always replace the target container](https://github.com/github/remote-input-element/blob/master/index.js#L80) with the HTTP response body, however if the server responds with an unexpected response e.g. HTTP 500 or 502 with a Full HTML page instead of a fragment to display, then the output does not look very desirable.\r\n\r\nhttps://user-images.githubusercontent.com/236297/61644279-6a3ad300-ac72-11e9-905c-0295859be893.png\r\n\r\nWhat would be the best way to handle scenarios like this?\r\n ","author":{"url":"https://github.com/arielvalentin","@type":"Person","name":"arielvalentin"},"datePublished":"2019-08-30T21:41:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/10/remote-input-element/issues/10"}
| 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:47e7fc51-760b-4492-97de-587ae48fde70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96B4:1AB92B:B9E037:FCB6C5:6A6199AF |
| html-safe-nonce | d7eb60be431d51bb77f4cd46f594194f2230fb9751b1fd856d65fef2ac4ae3a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkI0OjFBQjkyQjpCOUUwMzc6RkNCNkM1OjZBNjE5OUFGIiwidmlzaXRvcl9pZCI6IjcyNzQ5MjcwODc5MjA3MTYyMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8dea39e1e881012aba1bcaa3b81d35e6b9dceb8ecf4aa2595aa7a2790bc2e47c |
| hovercard-subject-tag | issue:487680942 |
| 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/github/remote-input-element/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3db6d1a764fe1f8d42b1c71de265f39f0509b599b31a0f52cab3564d9e9c900/github/remote-input-element/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3db6d1a764fe1f8d42b1c71de265f39f0509b599b31a0f52cab3564d9e9c900/github/remote-input-element/issues/10 |
| og:image:alt | I am new to using remote-input-element and am trying to figure out a way to properly handle unexpected HTTP responses. It looks like this component will always replace the target container with the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arielvalentin |
| hostname | github.com |
| expected-hostname | github.com |
| None | c28c2f6607f2aacbd934868d997038895c9780d08babfe918550d73773326f4c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/remote-input-element git https://github.com/github/remote-input-element.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 184330306 |
| octolytics-dimension-repository_nwo | github/remote-input-element |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 184330306 |
| octolytics-dimension-repository_network_root_nwo | github/remote-input-element |
| 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 | cd05235d52ffb3318513d883a56c87a121015c8b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width