René's URL Explorer Experiment


Title: fix: propagate HTTP errors from transports instead of silently logging by MaxwellCalkin · Pull Request #2249 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: propagate HTTP errors from transports instead of silently logging by MaxwellCalkin · Pull Request #2249 · modelcontextprotocol/python-sdk

X Title: fix: propagate HTTP errors from transports instead of silently logging by MaxwellCalkin · Pull Request #2249 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: propagate HTTP errors from transports instead of silently logging by MaxwellCalkin · Pull Request #2249 · modelcontextprotocol/python-sdk

Open Graph Description: Note: This PR was authored by Claude (AI), operated by @MaxwellCalkin. Summary Fixes #2110 When an MCP server returns non-2xx HTTP status codes (401/403/404/5xx), the Streamable HTTP and SSE transp...

X Description: Note: This PR was authored by Claude (AI), operated by @MaxwellCalkin. Summary Fixes #2110 When an MCP server returns non-2xx HTTP status codes (401/403/404/5xx), the Streamable HTTP and SSE transp...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2249

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4294a132-80b5-c29f-3ac6-ba2e19fa588a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBB0C:B9E9B:2E71B6:3E9725:6A5FF110
html-safe-nonce30f20b803b70ec453cce1fd3675ff1f68f31289dbad43664359cee702d35fb4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjBDOkI5RTlCOjJFNzFCNjozRTk3MjU6NkE1RkYxMTAiLCJ2aXNpdG9yX2lkIjoiMTU2MzQwOTg3NDY3NTU2MDcyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdd7042ee1e0c81a3a797e92e7ee1a4f5e608d4ab9fa2c45dc30c7dc1a0eadfc5
hovercard-subject-tagpull_request:3369387394
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2249/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5aca13009ec165167d3ceddcbb3eba52d103df5667e106d92246ba338b24b8ac/modelcontextprotocol/python-sdk/pull/2249
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5aca13009ec165167d3ceddcbb3eba52d103df5667e106d92246ba338b24b8ac/modelcontextprotocol/python-sdk/pull/2249
og:image:altNote: This PR was authored by Claude (AI), operated by @MaxwellCalkin. Summary Fixes #2110 When an MCP server returns non-2xx HTTP status codes (401/403/404/5xx), the Streamable HTTP and SSE transp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMaxwellCalkin
hostnamegithub.com
expected-hostnamegithub.com
Noneec26f1a08b78b3d576999ee8b45a2abc017c95dbee903a8019940cd2e9bf7b3d
turbo-cache-controlno-cache
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
release0a29f0b91ade2368fc0b74327c0f64ec1f98f5ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2249#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2249
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2Fpull%2F2249
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2249
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2249
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2249
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
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.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 265 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 312 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
MaxwellCalkinhttps://github.com/MaxwellCalkin
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
MaxwellCalkin:fix/http-error-propagationhttps://github.com/MaxwellCalkin/python-sdk/tree/fix/http-error-propagation
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2249
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/2249/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2249/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/files
fix: propagate HTTP errors from transports instead of silently logginghttps://github.com/modelcontextprotocol/python-sdk/pull/2249#top
MaxwellCalkinhttps://github.com/MaxwellCalkin
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
MaxwellCalkin:fix/http-error-propagationhttps://github.com/MaxwellCalkin/python-sdk/tree/fix/http-error-propagation
https://github.com/MaxwellCalkin
MaxwellCalkinhttps://github.com/MaxwellCalkin
Mar 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#issue-4040735716
@MaxwellCalkinhttps://github.com/MaxwellCalkin
#2110https://github.com/modelcontextprotocol/python-sdk/issues/2110
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
MaxwellCalkinhttps://github.com/MaxwellCalkin
March 8, 2026 03:11https://github.com/modelcontextprotocol/python-sdk/pull/2249#commits-pushed-642ca88
https://github.com/MaxwellCalkin
fix: add HttpError exception class for HTTP error propagationhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/642ca880eac5d94e7cb00b3dffbb2595d28b22ac
642ca88https://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/642ca880eac5d94e7cb00b3dffbb2595d28b22ac
https://github.com/MaxwellCalkin
fix: propagate HTTP errors in StreamableHTTP transport instead of sil…https://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/7605dfdce48c04d4c808bcd016783123bca89393
7605dfdhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/7605dfdce48c04d4c808bcd016783123bca89393
https://github.com/MaxwellCalkin
fix: propagate HTTP errors in SSE transport instead of silently logginghttps://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/7d602574139d1abd278f01d01968d799ea3a9b1d
7d60257https://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/7d602574139d1abd278f01d01968d799ea3a9b1d
https://github.com/MaxwellCalkin
fix: export HttpError from mcp packagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/715d47d2397a0658e55112bbf3d7fdc5d9910f52
715d47dhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/commits/715d47d2397a0658e55112bbf3d7fdc5d9910f52
https://github.com/Bortlesboat
Bortlesboathttps://github.com/Bortlesboat
Mar 9, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2249#pullrequestreview-3918454500
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2249/files/715d47d2397a0658e55112bbf3d7fdc5d9910f52
Bortlesboathttps://github.com/Bortlesboat
https://github.com/modelcontextprotocol/python-sdk/pull/2249#pullrequestreview-3918454500
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/files/715d47d2397a0658e55112bbf3d7fdc5d9910f52#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
Bortlesboathttps://github.com/Bortlesboat
Mar 9, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#discussion_r2908152883
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
src/mcp/client/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2249/files/715d47d2397a0658e55112bbf3d7fdc5d9910f52#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
Bortlesboathttps://github.com/Bortlesboat
Mar 9, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#discussion_r2908152888
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
slykarhttps://github.com/slykar
Mar 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#discussion_r2919709007
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#2273https://github.com/modelcontextprotocol/python-sdk/pull/2273
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
https://github.com/slykar
slykarhttps://github.com/slykar
Mar 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2249#ref-pullrequest-4059397135
Handle connection errors in StreamableHTTPTransport #2273 https://github.com/modelcontextprotocol/python-sdk/pull/2273
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#issuecomment-4119049224
#2124https://github.com/modelcontextprotocol/python-sdk/pull/2124
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2249#event-23856373499
HTTP transport swallows non-2xx status codes causing client to hang #2110 https://github.com/modelcontextprotocol/python-sdk/issues/2110
fix(client): propagate SSE POST errors to caller instead of hanging (#2110) #2483 https://github.com/modelcontextprotocol/python-sdk/pull/2483
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2249
https://github.com/slykar
slykar https://github.com/slykar
https://github.com/modelcontextprotocol/python-sdk/pull/2249/files/715d47d2397a0658e55112bbf3d7fdc5d9910f52
https://github.com/Bortlesboat
Bortlesboat https://github.com/Bortlesboat
https://github.com/modelcontextprotocol/python-sdk/pull/2249/files/715d47d2397a0658e55112bbf3d7fdc5d9910f52
HTTP transport swallows non-2xx status codes causing client to hang https://github.com/modelcontextprotocol/python-sdk/issues/2110
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2249
https://github.com/MaxwellCalkin
https://github.com/maxisbey
https://github.com/slykar
https://github.com/Bortlesboat
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.