Title: faulty answer string with batches that contain requests with and without id's · Issue #131 · Astn/JSON-RPC.NET · GitHub
Open Graph Title: faulty answer string with batches that contain requests with and without id's · Issue #131 · Astn/JSON-RPC.NET
X Title: faulty answer string with batches that contain requests with and without id's · Issue #131 · Astn/JSON-RPC.NET
Description: When I process a JSON request batch, for example: [{"jsonrpc":"2.0","method":"NewMeasureValues","params":{"Values":[{"Timestamp": null, "Mass":1},{"Timestamp": "2022-04-29T09:51:15.1961814Z", "Mass":2}]},"id":32},{"jsonrpc":"2.0","method...
Open Graph Description: When I process a JSON request batch, for example: [{"jsonrpc":"2.0","method":"NewMeasureValues","params":{"Values":[{"Timestamp": null, "Mass":1},{"Timestamp": "2022-04-29T09:51:15.1961814Z", "Mass...
X Description: When I process a JSON request batch, for example: [{"jsonrpc":"2.0","method":"NewMeasureValues","params":{"Values":[{"Timestamp"...
Opengraph URL: https://github.com/Astn/JSON-RPC.NET/issues/131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"faulty answer string with batches that contain requests with and without id's","articleBody":"When I process a JSON request batch, for example:\r\n\r\n```JSON\r\n[{\"jsonrpc\":\"2.0\",\"method\":\"NewMeasureValues\",\"params\":{\"Values\":[{\"Timestamp\": null, \"Mass\":1},{\"Timestamp\": \"2022-04-29T09:51:15.1961814Z\", \"Mass\":2}]},\"id\":32},{\"jsonrpc\":\"2.0\",\"method\":\"NewMeasureValues\",\"params\":{\"Values\":[{\"Timestamp\": null, \"Mass\":1},{\"Timestamp\": \"2022-04-29T09:51:15.1961814Z\", \"Mass\":2}]}}]\r\n```\r\n\r\nwhere the first request in the batch has an id and the second doesn't, the answer string I get with\r\n\r\n```CS\r\nJsonRpcProcessor.Process(receivedJsonString, this)\r\n```\r\n\r\nis an empty string. When it is the other way around, i get the following answer string:\r\n\r\n```JSON\r\n{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":32}]\r\n```\r\n\r\nThere the \"[\" at the beginning is missing.\r\n\r\nWhat I would expect as answer would be:\r\n\r\n```JSON\r\n[{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":32}]\r\n```\r\n\r\nin both cases.","author":{"url":"https://github.com/HoMS1987","@type":"Person","name":"HoMS1987"},"datePublished":"2022-04-29T11:50:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/131/JSON-RPC.NET/issues/131"}
| 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:61ab6c46-f435-66b0-c4f3-097e5e4a84d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC6A:996FD:38D418:4DCA35:698F6098 |
| html-safe-nonce | 1b42770fdc63f2015697be348ab16de9be2356e3cbfaba3fbecef3a024ae32ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzZBOjk5NkZEOjM4RDQxODo0RENBMzU6Njk4RjYwOTgiLCJ2aXNpdG9yX2lkIjoiODk5NjAwOTQ0NTA3MTc0MTA4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9056b1d0fb9644a7beced956b48617549e24c2baa58f8a97e4d1646f7d47b7eb |
| hovercard-subject-tag | issue:1220628115 |
| 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/131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c29d6effb23ef8b0c08a2ed0fd1bf3373ab1c20f3ff8ce55ecd1f6ca27a934cd/Astn/JSON-RPC.NET/issues/131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c29d6effb23ef8b0c08a2ed0fd1bf3373ab1c20f3ff8ce55ecd1f6ca27a934cd/Astn/JSON-RPC.NET/issues/131 |
| og:image:alt | When I process a JSON request batch, for example: [{"jsonrpc":"2.0","method":"NewMeasureValues","params":{"Values":[{"Timestamp": null, "Mass":1},{"Timestamp": "2022-04-29T09:51:15.1961814Z", "Mass... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HoMS1987 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ab1c9acb90dba91d5e994ebfb6bfb1130e0e0e6aca329cdbbd934d636e22ab6 |
| 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 | 04a785903b8c8db66e4594aee5b2e56cf7232706 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width