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: patch-diff.githubusercontent.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:a135e140-d536-e1e1-e8ef-08e87bc71d89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D01A:BEEEA:64134D:8611D4:698F7960 |
| html-safe-nonce | 86578e9dba96b7c32c2e706a1a4b3b37913a30d5e53a65f9a1036ddc429f1059 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDFBOkJFRUVBOjY0MTM0RDo4NjExRDQ6Njk4Rjc5NjAiLCJ2aXNpdG9yX2lkIjoiMjI1MzUyNzMyMDAyMjE4NjMzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fd6c7a40dd628074864355f784a0cc07004bae4c9d19d4170ef3f17117404c80 |
| 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 | 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