René's URL Explorer Experiment


Title: Exception because a request object has an invalid id · Issue #109 · Astn/JSON-RPC.NET · GitHub

Open Graph Title: Exception because a request object has an invalid id · Issue #109 · Astn/JSON-RPC.NET

X Title: Exception because a request object has an invalid id · Issue #109 · Astn/JSON-RPC.NET

Description: Consider this new test case. It contains a request with an object as the id attribute. This is against the 2.0 specification: [Test()] public void TestWrongIdType() { string request = @"{method:'TestOptionalParamdouble',params:{input:5},...

Open Graph Description: Consider this new test case. It contains a request with an object as the id attribute. This is against the 2.0 specification: [Test()] public void TestWrongIdType() { string request = @"{method:'Te...

X Description: Consider this new test case. It contains a request with an object as the id attribute. This is against the 2.0 specification: [Test()] public void TestWrongIdType() { string request = @"{metho...

Opengraph URL: https://github.com/Astn/JSON-RPC.NET/issues/109

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception because a request object has an invalid id","articleBody":"Consider this new test case. It contains a request with an object as the id attribute. This is against the 2.0 specification: \r\n\r\n```\r\n[Test()]\r\npublic void TestWrongIdType()\r\n{\r\n   string request = @\"{method:'TestOptionalParamdouble',params:{input:5},id:{what:4,that:3}}\";\r\n   var result = JsonRpcProcessor.Process(request);\r\n   result.Wait();\r\n   Assert.IsTrue(result.Result.Contains(\"error\"));\r\n}\r\n```\r\n\r\nIt fails throwing an ugly exception because the 'id' attribute is an object instead of a simple value. \r\nThe right solution should be to complain about the malformed request returning a -32600 code, and refuse to process the request altogether, instead of failing when serializing the response. Another option, unorthodox but easy to fix, would be to allow objects in the id attribute. \r\n \r\nComplete stack trace:\r\n\r\n```\r\nNewtonsoft.Json.JsonWriterException\r\n  HResult=0x80131500\r\n  Message=Unsupported type: Newtonsoft.Json.Linq.JObject. Use the JsonSerializer class to get the object's JSON representation. Path ''.\r\n  Source=Newtonsoft.Json\r\n  StackTrace:\r\n   at Newtonsoft.Json.JsonWriter.WriteValue(JsonWriter writer, PrimitiveTypeCode typeCode, Object value)\r\n   at Newtonsoft.Json.JsonWriter.WriteValue(Object value)\r\n   at Newtonsoft.Json.JsonTextWriter.WriteValue(Object value)\r\n   at AustinHarris.JsonRpc.JsonRpcProcessor.ProcessInternal(String sessionId, String jsonRpc, Object jsonRpcContext) in C:\\Users\\plopezc\\source\\repos\\JsonRpcNet\\Json-Rpc\\JsonRpcProcessor.cs:line 135\r\n   at AustinHarris.JsonRpc.JsonRpcProcessor.\u003c\u003ec.\u003cProcess\u003eb__3_0(Object _) in C:\\Users\\plopezc\\source\\repos\\JsonRpcNet\\Json-Rpc\\JsonRpcProcessor.cs:line 39\r\n   at System.Threading.Tasks.Task`1.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\n\r\n```","author":{"url":"https://github.com/pedrolcl","@type":"Person","name":"pedrolcl"},"datePublished":"2019-09-26T07:30:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/109/JSON-RPC.NET/issues/109"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e24b622b-88fa-0259-8406-b23a0768af81
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD54:BFBA6:47561A2:5BC9427:69912E2C
html-safe-nonceb1ab5b816ce00ae30e4562321dab9c587ab0eacd12edf6ea21d296ddd4bde7fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDU0OkJGQkE2OjQ3NTYxQTI6NUJDOTQyNzo2OTkxMkUyQyIsInZpc2l0b3JfaWQiOiIzNzU3NTY1NjEzNzEyNjgyNTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2d1d3e55f0573f17d66fdb8757bd3f4fdadef6e4322a4142c1828e677dbfabc8
hovercard-subject-tagissue:498709908
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Astn/JSON-RPC.NET/109/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ab28e73d77058884d03c542726ee77a5751d4c9a256ee339dbf854a45ac9e4be/Astn/JSON-RPC.NET/issues/109
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab28e73d77058884d03c542726ee77a5751d4c9a256ee339dbf854a45ac9e4be/Astn/JSON-RPC.NET/issues/109
og:image:altConsider this new test case. It contains a request with an object as the id attribute. This is against the 2.0 specification: [Test()] public void TestWrongIdType() { string request = @"{method:'Te...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepedrolcl
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/Astn/JSON-RPC.NET git https://github.com/Astn/JSON-RPC.NET.git
octolytics-dimension-user_id6857743
octolytics-dimension-user_loginAstn
octolytics-dimension-repository_id17465376
octolytics-dimension-repository_nwoAstn/JSON-RPC.NET
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17465376
octolytics-dimension-repository_network_root_nwoAstn/JSON-RPC.NET
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Astn/JSON-RPC.NET/issues/109#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAstn%2FJSON-RPC.NET%2Fissues%2F109
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAstn%2FJSON-RPC.NET%2Fissues%2F109
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Astn%2FJSON-RPC.NET
Reloadhttps://github.com/Astn/JSON-RPC.NET/issues/109
Reloadhttps://github.com/Astn/JSON-RPC.NET/issues/109
Reloadhttps://github.com/Astn/JSON-RPC.NET/issues/109
Astn https://github.com/Astn
JSON-RPC.NEThttps://github.com/Astn/JSON-RPC.NET
Notifications https://github.com/login?return_to=%2FAstn%2FJSON-RPC.NET
Fork 87 https://github.com/login?return_to=%2FAstn%2FJSON-RPC.NET
Star 329 https://github.com/login?return_to=%2FAstn%2FJSON-RPC.NET
Code https://github.com/Astn/JSON-RPC.NET
Issues 13 https://github.com/Astn/JSON-RPC.NET/issues
Pull requests 8 https://github.com/Astn/JSON-RPC.NET/pulls
Actions https://github.com/Astn/JSON-RPC.NET/actions
Projects 0 https://github.com/Astn/JSON-RPC.NET/projects
Wiki https://github.com/Astn/JSON-RPC.NET/wiki
Security 0 https://github.com/Astn/JSON-RPC.NET/security
Insights https://github.com/Astn/JSON-RPC.NET/pulse
Code https://github.com/Astn/JSON-RPC.NET
Issues https://github.com/Astn/JSON-RPC.NET/issues
Pull requests https://github.com/Astn/JSON-RPC.NET/pulls
Actions https://github.com/Astn/JSON-RPC.NET/actions
Projects https://github.com/Astn/JSON-RPC.NET/projects
Wiki https://github.com/Astn/JSON-RPC.NET/wiki
Security https://github.com/Astn/JSON-RPC.NET/security
Insights https://github.com/Astn/JSON-RPC.NET/pulse
New issuehttps://github.com/login?return_to=https://github.com/Astn/JSON-RPC.NET/issues/109
New issuehttps://github.com/login?return_to=https://github.com/Astn/JSON-RPC.NET/issues/109
Exception because a request object has an invalid idhttps://github.com/Astn/JSON-RPC.NET/issues/109#top
https://github.com/pedrolcl
https://github.com/pedrolcl
pedrolclhttps://github.com/pedrolcl
on Sep 26, 2019https://github.com/Astn/JSON-RPC.NET/issues/109#issue-498709908
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.