René's URL Explorer Experiment


Title: fix: handle HTTP error status codes in streamable HTTP client by Kludex · Pull Request #2047 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: handle HTTP error status codes in streamable HTTP client by Kludex · Pull Request #2047 · modelcontextprotocol/python-sdk

X Title: fix: handle HTTP error status codes in streamable HTTP client by Kludex · Pull Request #2047 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: handle HTTP error status codes in streamable HTTP client by Kludex · Pull Request #2047 · modelcontextprotocol/python-sdk

Open Graph Description: Summary When a server returns a non-2xx HTTP status code (e.g. 500 Internal Server Error, 403 Forbidden), the streamable HTTP client previously called response.raise_for_status(), which raised an u...

X Description: Summary When a server returns a non-2xx HTTP status code (e.g. 500 Internal Server Error, 403 Forbidden), the streamable HTTP client previously called response.raise_for_status(), which raised an u...

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

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:b48b87f1-7426-7323-5bcf-cc4ea4033fba
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id807C:2017FC:7E8A39:B46284:6A63179F
html-safe-nonce919b1db2c564b546b3de7fe160a2d1d8ad8980956f7dff3b9bf9c8a0793ab612
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDdDOjIwMTdGQzo3RThBMzk6QjQ2Mjg0OjZBNjMxNzlGIiwidmlzaXRvcl9pZCI6IjI4MDM4ODg4NjE3NTE3NDQ0MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca132e61f8fadd62cae5e3c970a64675d7f8a96f097bb7266b43b15fc819ae53f
hovercard-subject-tagpull_request:3279997521
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/2047/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0f5a89e9bcf28a49dd5adb299c1db2185cd2a05071a9cb6f7be7077fa03efa4d/modelcontextprotocol/python-sdk/pull/2047
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0f5a89e9bcf28a49dd5adb299c1db2185cd2a05071a9cb6f7be7077fa03efa4d/modelcontextprotocol/python-sdk/pull/2047
og:image:altSummary When a server returns a non-2xx HTTP status code (e.g. 500 Internal Server Error, 403 Forbidden), the streamable HTTP client previously called response.raise_for_status(), which raised an u...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKludex
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
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
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2047#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2047
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%2F2047
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/2047
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2047
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2047
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
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 270 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 317 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
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fix/http-error-status-jsonrpc-errorhttps://github.com/modelcontextprotocol/python-sdk/tree/fix/http-error-status-jsonrpc-error
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2047
Commits5 (5)https://github.com/modelcontextprotocol/python-sdk/pull/2047/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2047/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2047/files
fix: handle HTTP error status codes in streamable HTTP clienthttps://github.com/modelcontextprotocol/python-sdk/pull/2047#top
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fix/http-error-status-jsonrpc-errorhttps://github.com/modelcontextprotocol/python-sdk/tree/fix/http-error-status-jsonrpc-error
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2047#issue-3936144604
fix: send JSONRPCError instead of bare exceptions in streamable HTTP client #2005https://github.com/modelcontextprotocol/python-sdk/pull/2005
BUG REPORT: HTTP errors are being silently swallowed in the StreamableHTTP client #1010https://github.com/modelcontextprotocol/python-sdk/issues/1010
Client tool call hangs forever if server crashes or connection dies when using streamable-http #1577https://github.com/modelcontextprotocol/python-sdk/issues/1577
ClientSession Error Handling #1401https://github.com/modelcontextprotocol/python-sdk/issues/1401
When throwing the HTTP status exception, MCP client is disregarding the exception message! #1212https://github.com/modelcontextprotocol/python-sdk/issues/1212
Lazy HTTP connections seem to make error handling difficult. #1393https://github.com/modelcontextprotocol/python-sdk/issues/1393
Http errors are not handled properly by streamable_http #1835https://github.com/modelcontextprotocol/python-sdk/issues/1835
Cannot handle Unexpected content type when initializing MCP session #1382https://github.com/modelcontextprotocol/python-sdk/issues/1382
fix: send JSONRPCError instead of bare exceptions in streamable HTTP client #2005https://github.com/modelcontextprotocol/python-sdk/pull/2005
streamable_http client call_tool hangs when receiving invalid JSONRPCMessage #1144https://github.com/modelcontextprotocol/python-sdk/issues/1144
fix: send JSONRPCError instead of bare exceptions in streamable HTTP client #2005https://github.com/modelcontextprotocol/python-sdk/pull/2005
fix: Catch http errors  #1308https://github.com/modelcontextprotocol/python-sdk/pull/1308
fix: Add exception handling for POST request failures in StreamableHTTP #1008https://github.com/modelcontextprotocol/python-sdk/pull/1008
Add httpx.HTTPStatusError error handling to tool run #1119https://github.com/modelcontextprotocol/python-sdk/pull/1119
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
Kludexhttps://github.com/Kludex
February 13, 2026 10:10https://github.com/modelcontextprotocol/python-sdk/pull/2047#commits-pushed-bbbd40e
https://github.com/Kludex
fix: handle HTTP error status codes in streamable HTTP clienthttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/bbbd40eb79bd348f02e28ca325aa28517d09bd28
bbbd40ehttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/bbbd40eb79bd348f02e28ca325aa28517d09bd28
#2005https://github.com/modelcontextprotocol/python-sdk/pull/2005
https://github.com/Kludex
Merge branch 'main' into fix/http-error-status-jsonrpc-errorhttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/032c187973d512fe28a338ce7ef1c40ee2eb7a02
032c187https://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/032c187973d512fe28a338ce7ef1c40ee2eb7a02
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2047#issuecomment-3895831683
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Feb 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2047#pullrequestreview-3796677997
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2047/files/032c187973d512fe28a338ce7ef1c40ee2eb7a02
tests/client/test_notification_response.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2047/files/032c187973d512fe28a338ce7ef1c40ee2eb7a02#diff-8c7bb1142c1c9cb43b4d2e7bf265054daca89ba175deec8b690f00464c00c182
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Feb 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2047#pullrequestreview-3796796690
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2047/files/032c187973d512fe28a338ce7ef1c40ee2eb7a02
https://github.com/Kludex
test: cover HTTP error branch for notificationshttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/855bb6e8ad4bd84c7d1053ddd270c5616a612c13
855bb6ehttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/855bb6e8ad4bd84c7d1053ddd270c5616a612c13
https://github.com/Kludex
Kludexhttps://github.com/Kludex
maxisbeyhttps://github.com/maxisbey
stale reviewhttps://github.com/modelcontextprotocol/python-sdk/pull/2047#pullrequestreview-3796796690
855bb6ehttps://github.com/modelcontextprotocol/python-sdk/commit/855bb6e8ad4bd84c7d1053ddd270c5616a612c13
February 13, 2026 12:46https://github.com/modelcontextprotocol/python-sdk/pull/2047#event-22765619206
Kludexhttps://github.com/Kludex
February 13, 2026 14:06https://github.com/modelcontextprotocol/python-sdk/pull/2047#commits-pushed-ac4c2ac
https://github.com/Kludex
test: fix branch coverage on Python 3.11/3.14https://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/ac4c2ac05eb6d302fe2b1bc20c9d9859662483c7
ac4c2achttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/ac4c2ac05eb6d302fe2b1bc20c9d9859662483c7
https://github.com/Kludex
Merge branch 'main' into fix/http-error-status-jsonrpc-errorhttps://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/23a3104a987d1af2e6bb950f1a21234cc1e885ff
23a3104https://github.com/modelcontextprotocol/python-sdk/pull/2047/commits/23a3104a987d1af2e6bb950f1a21234cc1e885ff
https://github.com/Kludex
Kludexhttps://github.com/Kludex
maxisbeyhttps://github.com/maxisbey
February 13, 2026 13:17https://github.com/modelcontextprotocol/python-sdk/pull/2047#event-22766348636
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Feb 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2047#pullrequestreview-3797861556
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2047/files/23a3104a987d1af2e6bb950f1a21234cc1e885ff
https://github.com/Kludex
Kludexhttps://github.com/Kludex
2fe56e5https://github.com/modelcontextprotocol/python-sdk/commit/2fe56e56de2aff8fcb964ff7e26e7c6df4d14653
Feb 14, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2047#event-22787812258
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/Kludex
Kludexhttps://github.com/Kludex
February 14, 2026 08:49https://github.com/modelcontextprotocol/python-sdk/pull/2047#event-22787812556
https://github.com/owenliang
owenlianghttps://github.com/owenliang
Feb 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2047#issuecomment-3920075961
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/apps/mcp-claude
mcp-claudehttps://github.com/apps/mcp-claude
Jun 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2047#ref-issue-4453610405
streamable_http_client: one concurrent request HTTPStatusError tears down sibling requests #2604 https://github.com/modelcontextprotocol/python-sdk/issues/2604
https://github.com/hiteshshimpi-55
hiteshshimpi-55https://github.com/hiteshshimpi-55
Jun 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2047#issuecomment-4622006290
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
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%2F2047
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2047/files/23a3104a987d1af2e6bb950f1a21234cc1e885ff
BUG REPORT: HTTP errors are being silently swallowed in the StreamableHTTP client https://github.com/modelcontextprotocol/python-sdk/issues/1010
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/Kludex
https://github.com/owenliang
https://github.com/hiteshshimpi-55
https://github.com/maxisbey
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.