René's URL Explorer Experiment


Title: Invalid JSON-RPC envelope errors are not correlated with the original request id · Issue #2848 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Invalid JSON-RPC envelope errors are not correlated with the original request id · Issue #2848 · modelcontextprotocol/python-sdk

X Title: Invalid JSON-RPC envelope errors are not correlated with the original request id · Issue #2848 · modelcontextprotocol/python-sdk

Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue Description After a normal initial...

Open Graph Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ...

X Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening t...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2848

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid JSON-RPC envelope errors are not correlated with the original request id","articleBody":"### Initial Checks\n\n- [x] I confirm that I'm using the latest version of MCP Python SDK\n- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue\n\n### Description\n\nAfter a normal initialization flow, several id-bearing JSON-RPC messages that are syntactically valid JSON but invalid JSON-RPC request envelopes are not correlated back to the original request id.\n\nThis is not meant to require implementations to recover an id after every low-level parse/deserialization failure. The narrower concern is that these payloads are parsed far enough to produce request-specific validation errors, while the original top-level id is still present in the payload. Preserving that id where feasible would make the error response easier for clients to correlate.\n\n\nThe tested inputs were:\n\n| Case                    | Request                                                | Validation detail                                       |\n| ----------------------- | ------------------------------------------------------ | ------------------------------------------------------- |\n| wrong `jsonrpc` version | `{\"jsonrpc\":\"1.0\",\"id\":3,\"method\":\"ping\",\"params\":{}}` | `JSONRPCRequest.jsonrpc`: value should be `\"2.0\"`       |\n| missing `jsonrpc` field | `{\"id\":4,\"method\":\"ping\",\"params\":{}}`                 | `JSONRPCRequest.jsonrpc`: field required                |\n| `method` as number      | `{\"jsonrpc\":\"2.0\",\"id\":8,\"method\":12345,\"params\":{}}`  | `JSONRPCRequest.method`: input should be a valid string |\n\nFor all three envelope-invalid inputs, I would expect `-32600 Invalid Request` or `-32602` error response that can be correlated to the original request where possible.\n\nObserved behavior was consistent by transport:\n\n- **stdio:** The server emits a `notifications/message` log notification with `level:\"error\"` and `data:\"Internal Server Error\"`, but no JSON-RPC error response is sent for the original request `id`. A follow-up `ping` succeeds.\n- **Streamable HTTP:** The server returns HTTP 400 with a JSON-RPC error response using `id:\"server-error\"` and `code:-32602`, rather than the original request `id`. A follow-up `ping` succeeds over SSE.\n\n### Example Code\n\n```Python\n\"\"\"\nWith a Python SDK MCP server running over stdio or Streamable HTTP,\ncomplete a normal initialization flow, then send these requests in isolation.\n\"\"\"\n\nrequests = [\n    # Wrong JSON-RPC version: valid JSON, invalid JSON-RPC envelope.\n    {\"jsonrpc\": \"1.0\", \"id\": 3, \"method\": \"ping\", \"params\": {}},\n\n    # Missing jsonrpc field: valid JSON, invalid JSON-RPC envelope.\n    {\"id\": 4, \"method\": \"ping\", \"params\": {}},\n\n    # method is not a string: valid JSON, invalid JSON-RPC envelope.\n    {\"jsonrpc\": \"2.0\", \"id\": 8, \"method\": 12345, \"params\": {}},\n]\n```\n\n### Python \u0026 MCP Python SDK\n\n```Text\n* Python: `3.12.3`\n* MCP Python SDK stable release: `v1.27.2` (`62137874ff26dd74d2fea80ff528a7fd9ca7a5e7`)\n* Transports: stdio and Streamable HTTP\n```","author":{"url":"https://github.com/cclabadmin","@type":"Person","name":"cclabadmin"},"datePublished":"2026-06-12T11:49:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2848/python-sdk/issues/2848"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c52fa6c4-4c89-156e-dbc8-92a275da46fe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE68A:2681A6:11A3B2:1739A5:6A5AC5E4
html-safe-nonceb1845ba98a443ee5b02b75d5d12137177bd63173037343a73ee85249bbd32725
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjhBOjI2ODFBNjoxMUEzQjI6MTczOUE1OjZBNUFDNUU0IiwidmlzaXRvcl9pZCI6IjY3MDA2MTY3Njk5MDczNzc2MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7cbb5fcc9e961832a5924eaae2509631283fffc3b0517d26eaf3774554e129a9
hovercard-subject-tagissue:4648962698
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/modelcontextprotocol/python-sdk/2848/issue_layout
twitter:imagehttps://opengraph.githubassets.com/692205404a1c1313a12434d39c353041232da8c6c4ce8d81c638f3fe97009590/modelcontextprotocol/python-sdk/issues/2848
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/692205404a1c1313a12434d39c353041232da8c6c4ce8d81c638f3fe97009590/modelcontextprotocol/python-sdk/issues/2848
og:image:altInitial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecclabadmin
hostnamegithub.com
expected-hostnamegithub.com
Nonef422022de939199d6afcbaac024b42b6232a3498a95f198e17717afb8b46fb15
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
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
release2fa01ceb3b3a801409f050561abfb062094702d0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/2848#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F2848
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F2848
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=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/2848
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/2848
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/2848
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/issues/2848
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 257 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 301 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
#2852https://github.com/modelcontextprotocol/python-sdk/pull/2852
Invalid JSON-RPC envelope errors are not correlated with the original request idhttps://github.com/modelcontextprotocol/python-sdk/issues/2848#top
#2852https://github.com/modelcontextprotocol/python-sdk/pull/2852
https://github.com/cclabadmin
cclabadminhttps://github.com/cclabadmin
on Jun 12, 2026https://github.com/modelcontextprotocol/python-sdk/issues/2848#issue-4648962698
https://github.com/modelcontextprotocol/python-sdk/issueshttps://github.com/modelcontextprotocol/python-sdk/issues
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.