Title: Handle non-hal+json responses · Issue #134 · codegram/hyperclient · GitHub
Open Graph Title: Handle non-hal+json responses · Issue #134 · codegram/hyperclient
X Title: Handle non-hal+json responses · Issue #134 · codegram/hyperclient
Description: Responses are currently required to be hal+json. The API we consume returns a 201 without data and a http header for a new location when we do a _post. The request is successful but Hyperclient gives a InvalidRepresentationError due to t...
Open Graph Description: Responses are currently required to be hal+json. The API we consume returns a 201 without data and a http header for a new location when we do a _post. The request is successful but Hyperclient giv...
X Description: Responses are currently required to be hal+json. The API we consume returns a 201 without data and a http header for a new location when we do a _post. The request is successful but Hyperclient giv...
Opengraph URL: https://github.com/codegram/hyperclient/issues/134
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle non-hal+json responses","articleBody":"Responses are currently required to be ```hal+json```. The API we consume returns a 201 without data and a http header for a new location when we do a ```_post```. The request is successful but Hyperclient gives a ```InvalidRepresentationError``` due to the response not being ```hal+json```.\r\n\r\nThis works in v0.8.5 but not in the latest version due to https://github.com/codegram/hyperclient/commit/1c7dc4c3d2b0bf311278246f1338de405d08ef84\r\n\r\nI'll provide a failing test later.","author":{"url":"https://github.com/espen","@type":"Person","name":"espen"},"datePublished":"2018-01-31T13:41:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/134/hyperclient/issues/134"}
| 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:e78a1c66-2c27-abb0-6e92-6d547980e4c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D120:1F80CF:752266:9BFA0C:6978327E |
| html-safe-nonce | 99705e021a37837a7f440ab556b09029fa9f782a5555a58e774db46899830466 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTIwOjFGODBDRjo3NTIyNjY6OUJGQTBDOjY5NzgzMjdFIiwidmlzaXRvcl9pZCI6IjI0ODYyODAxNDA0ODA4NTI2MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 72099ed69d39a81243976c874f73d1b86403b66ce317dfcbe5b31796a930c419 |
| hovercard-subject-tag | issue:293161623 |
| 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/codegram/hyperclient/134/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4ad3d660178517e0b451d7311493236ef5da44b39d0fe3f5c2a5b9bbc41a86f/codegram/hyperclient/issues/134 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4ad3d660178517e0b451d7311493236ef5da44b39d0fe3f5c2a5b9bbc41a86f/codegram/hyperclient/issues/134 |
| og:image:alt | Responses are currently required to be hal+json. The API we consume returns a 201 without data and a http header for a new location when we do a _post. The request is successful but Hyperclient giv... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | espen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/codegram/hyperclient git https://github.com/codegram/hyperclient.git |
| octolytics-dimension-user_id | 82056 |
| octolytics-dimension-user_login | codegram |
| octolytics-dimension-repository_id | 3877860 |
| octolytics-dimension-repository_nwo | codegram/hyperclient |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3877860 |
| octolytics-dimension-repository_network_root_nwo | codegram/hyperclient |
| 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 | 8cc3e064910e26648760f573a358cfc07c97b42c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width