Title: Single response when sending batch request. · Issue #140 · Astn/JSON-RPC.NET · GitHub
Open Graph Title: Single response when sending batch request. · Issue #140 · Astn/JSON-RPC.NET
X Title: Single response when sending batch request. · Issue #140 · Astn/JSON-RPC.NET
Description: When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is incorrect. It is certainly breaking my ...
Open Graph Description: When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is...
X Description: When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is...
Opengraph URL: https://github.com/Astn/JSON-RPC.NET/issues/140
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Single response when sending batch request.","articleBody":"When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is incorrect. It is certainly breaking my client expectations :-D Some examples follow.\r\n\r\nCorrect with 2 requests:\r\n\r\n```\r\nRequest\r\n\r\n[{\"id\":1849316922322121888,\"jsonrpc\":\"2.0\",\"method\":\"Observer.SwitchCamera\",\"params\":{}},{\"id\":732138300415643188,\"jsonrpc\":\"2.0\",\"method\":\"Observer.SwitchCamera\",\"params\":{}}]\r\n\r\nResponse\r\n[{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":1849316922322121888},{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":732138300415643188}]\r\n\r\n\r\n\r\n```\r\nRequest\r\n[{\"id\":2419378167359262235,\"jsonrpc\":\"2.0\",\"method\":\"Observer.SwitchCamera\",\"params\":{}}]\r\n\r\nResponse missing array brackets\r\n{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":2419378167359262235}\r\n```\r\n\r\n","author":{"url":"https://github.com/hovi","@type":"Person","name":"hovi"},"datePublished":"2022-11-03T16:00:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/140/JSON-RPC.NET/issues/140"}
| 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:2a11858e-1a97-b03c-95c9-602110383061 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0A6:80F9C:D1ABAC:119736E:698F7969 |
| html-safe-nonce | 567d94c237601d6838f9b3eefe12e2256f107021a97ea5b3fc82c77f5bc10b81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEE2OjgwRjlDOkQxQUJBQzoxMTk3MzZFOjY5OEY3OTY5IiwidmlzaXRvcl9pZCI6IjU0MzYzMzgwODA1NDA3NTIyMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26202de0054250d030a930581a5ae38ed5c98aa65778bd54aa8ba2c054dbe827 |
| hovercard-subject-tag | issue:1434905890 |
| 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/Astn/JSON-RPC.NET/140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afa82075fb8c4053a18be8739e7279acbc4ec3283f948a18c2209d6e03299fe7/Astn/JSON-RPC.NET/issues/140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afa82075fb8c4053a18be8739e7279acbc4ec3283f948a18c2209d6e03299fe7/Astn/JSON-RPC.NET/issues/140 |
| og:image:alt | When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hovi |
| hostname | github.com |
| expected-hostname | github.com |
| None | a40913be56b49e6322246e4bcd65ab6ec4b458c6dca6b691d30419da1e5ee35e |
| turbo-cache-control | no-preview |
| go-import | github.com/Astn/JSON-RPC.NET git https://github.com/Astn/JSON-RPC.NET.git |
| octolytics-dimension-user_id | 6857743 |
| octolytics-dimension-user_login | Astn |
| octolytics-dimension-repository_id | 17465376 |
| octolytics-dimension-repository_nwo | Astn/JSON-RPC.NET |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17465376 |
| octolytics-dimension-repository_network_root_nwo | Astn/JSON-RPC.NET |
| 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 | ca6051e0ba2303370981e3d01e2bc1044eb3b429 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width