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: github.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:6d1be777-74ee-86c3-f636-3b742789ee55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB32:17569A:628B10:82F1F3:698F9968 |
| html-safe-nonce | 5d097153d62786b2f08fc4bf5916c4769dc4a8425bad9bba40f12a45088dab21 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjMyOjE3NTY5QTo2MjhCMTA6ODJGMUYzOjY5OEY5OTY4IiwidmlzaXRvcl9pZCI6IjgwNzU1MzE0NzYwMzUxNDgxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a079770cc808ee0fc1565e520bc010dc005893183bd640803616bfe3c9d6fe07 |
| 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 | 5f47eb8d0aaafbfcb6a8220a40bd81431acf688857c575e6489670c394cfa36f |
| 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 | 09a8136f6e8f8fd3078d54ce5f8b7adb493d44a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width