René's URL Explorer Experiment


Title: fix: Catch http errors by lorenss-m · Pull Request #1308 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: Catch http errors by lorenss-m · Pull Request #1308 · modelcontextprotocol/python-sdk

X Title: fix: Catch http errors by lorenss-m · Pull Request #1308 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: Catch http errors by lorenss-m · Pull Request #1308 · modelcontextprotocol/python-sdk

Open Graph Description: Fix: Propagate HTTP errors to client Motivation and Context HTTP request failures were not being properly communicated to clients, causing silent failures. This fix ensures errors are sent through ...

X Description: Fix: Propagate HTTP errors to client Motivation and Context HTTP request failures were not being properly communicated to clients, causing silent failures. This fix ensures errors are sent through ...

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

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:316ef591-32bc-228a-bb54-eda82e3fffa5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF16:E4D2D:11091D5:189050A:6A632ED7
html-safe-noncec0ae7a895d2f6f8565848147587d1f392e6d57e6548984d45650ef848ced8d86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjE2OkU0RDJEOjExMDkxRDU6MTg5MDUwQTo2QTYzMkVENyIsInZpc2l0b3JfaWQiOiI1NjEwOTQyMjQ1MDMyMzczOTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac35e326fd885ec0633d6703946923a148426ffec73afc54fe2fbc7f831be0ecb7
hovercard-subject-tagpull_request:2774309392
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/1308/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c640967396e01dc7cc937ff13f63c579b8ec3e6aefce6551257650063cac9348/modelcontextprotocol/python-sdk/pull/1308
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c640967396e01dc7cc937ff13f63c579b8ec3e6aefce6551257650063cac9348/modelcontextprotocol/python-sdk/pull/1308
og:image:altFix: Propagate HTTP errors to client Motivation and Context HTTP request failures were not being properly communicated to clients, causing silent failures. This fix ensures errors are sent through ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelorenss-m
hostnamegithub.com
expected-hostnamegithub.com
Nonedf6e1c2adcceb061ec8c4106a1b34f38280f08e13f2b195c661c202834cbc3b1
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
release822a0ff2a479845adcdd40a1a7b1734a56e05818
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1308#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1308
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%2F1308
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/1308
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1308
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1308
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
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
lorenss-mhttps://github.com/lorenss-m
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
hud-evals:cherry-pick-9352949https://github.com/hud-evals/mcp-python-sdk/tree/cherry-pick-9352949
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/1308
Commits2 (2)https://github.com/modelcontextprotocol/python-sdk/pull/1308/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/1308/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/1308/files
fix: Catch http errors https://github.com/modelcontextprotocol/python-sdk/pull/1308#top
lorenss-mhttps://github.com/lorenss-m
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
hud-evals:cherry-pick-9352949https://github.com/hud-evals/mcp-python-sdk/tree/cherry-pick-9352949
https://github.com/lorenss-m
lorenss-mhttps://github.com/lorenss-m
Aug 26, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#issue-3354688846
https://github.com/hud-evals/hud-pythonhttps://github.com/hud-evals/hud-python
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
https://github.com/lorenss-m
http error gets pushed throughhttps://github.com/modelcontextprotocol/python-sdk/pull/1308/commits/66c844a8dc636cd5c796dabf241e29f09b64fdb5
66c844ahttps://github.com/modelcontextprotocol/python-sdk/pull/1308/commits/66c844a8dc636cd5c796dabf241e29f09b64fdb5
https://github.com/lorenss-m
lorenss-mhttps://github.com/lorenss-m
Kludexhttps://github.com/Kludex
August 26, 2025 08:30https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-19338734358
https://github.com/lorenss-m
lorenss-mhttps://github.com/lorenss-m
Aug 27, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-19361827765
https://github.com/lorenss-m
lorenss-mhttps://github.com/lorenss-m
Sep 19, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#issuecomment-3311094659
@Kludexhttps://github.com/Kludex
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1308#pullrequestreview-3258783969
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1308/files/66c844a8dc636cd5c796dabf241e29f09b64fdb5
felixweinbergerhttps://github.com/felixweinberger
https://github.com/modelcontextprotocol/python-sdk/pull/1308#pullrequestreview-3258783969
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@lorenss-mhttps://github.com/lorenss-m
#1194https://github.com/modelcontextprotocol/python-sdk/pull/1194
#1008https://github.com/modelcontextprotocol/python-sdk/pull/1008
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1308/files/66c844a8dc636cd5c796dabf241e29f09b64fdb5#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#discussion_r2372861002
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-19870524879
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
needs maintainer https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20maintainer%22
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-19870528296
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Error catching improvementshttps://github.com/modelcontextprotocol/python-sdk/milestone/15
Sep 26, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-19947549426
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
Sep 30, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-20012695690
https://github.com/lorenss-m
Merge branch 'main' into cherry-pick-9352949https://github.com/modelcontextprotocol/python-sdk/pull/1308/commits/3142084dab7fdf3e5928d3c1501c36a54575d04c
3142084https://github.com/modelcontextprotocol/python-sdk/pull/1308/commits/3142084dab7fdf3e5928d3c1501c36a54575d04c
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
bug https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug
P2 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP2
Dec 11, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-21500747561
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Dec 11, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-21500775754
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Dec 11, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-21500777988
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Feb 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1308#ref-pullrequest-3936144604
fix: handle HTTP error status codes in streamable HTTP client #2047 https://github.com/modelcontextprotocol/python-sdk/pull/2047
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1308#event-23869145845
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%2F1308
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
https://github.com/modelcontextprotocol/python-sdk/pull/1308/files/66c844a8dc636cd5c796dabf241e29f09b64fdb5
https://github.com/Kludex
Kludex https://github.com/Kludex
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
bug https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug
needs maintainer https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20maintainer%22
P2 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP2
Error catching improvements https://github.com/modelcontextprotocol/python-sdk/milestone/15
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1308
https://github.com/lorenss-m
https://github.com/felixweinberger
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.