René's URL Explorer Experiment


Title: Fix FastAPI recursive exceptions by antonpirker · Pull Request #4334 · getsentry/sentry-python · GitHub

Open Graph Title: Fix FastAPI recursive exceptions by antonpirker · Pull Request #4334 · getsentry/sentry-python

X Title: Fix FastAPI recursive exceptions by antonpirker · Pull Request #4334 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: In some cases FastAPI emits an exception that has as __cause__ an ExceptionGroup that contains a single excpetion. That single exepction is the original exception. This PR prevents an infinite loop...

X Description: In some cases FastAPI emits an exception that has as __cause__ an ExceptionGroup that contains a single excpetion. That single exepction is the original exception. This PR prevents an infinite loop...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/4334

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:d5b9d0a8-9c93-c432-faef-42cdfc51ad6f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB9B4:811D1:855332:B1B3E8:6B00B269
html-safe-nonce871b881e72866ac3aeb349283b27f8f0ae053342ec9b517894cb1b58887970a4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUI0OjgxMUQxOjg1NTMzMjpCMUIzRTg6NkIwMEIyNjkiLCJ2aXNpdG9yX2lkIjoiNjgyNDgxMTk3MjY4OTcwMzUyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceec1fe78a17269db2a5388b464c4bf20f2e24f8504a064f45816edd3e67d79e2
hovercard-subject-tagpull_request:2485622515
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/getsentry/sentry-python/4334/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6bfeb997368a3d3f0c5800d9c2d934b9b7f1da86ee67655ffcbb65dfa2c389d3/getsentry/sentry-python/pull/4334
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6bfeb997368a3d3f0c5800d9c2d934b9b7f1da86ee67655ffcbb65dfa2c389d3/getsentry/sentry-python/pull/4334
og:image:altIn some cases FastAPI emits an exception that has as __cause__ an ExceptionGroup that contains a single excpetion. That single exepction is the original exception. This PR prevents an infinite loop...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameantonpirker
hostnamegithub.com
expected-hostnamegithub.com
Nonec0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
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
release729d8cda69b3d267995675dfbf89ff27ccf61bf6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4334#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4334
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4334
Sign uphttps://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=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4334
Reloadhttps://github.com/getsentry/sentry-python/pull/4334
Reloadhttps://github.com/getsentry/sentry-python/pull/4334
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
antonpirkerhttps://github.com/antonpirker
potel-basehttps://github.com/getsentry/sentry-python/tree/potel-base
antonpirker/fix-fastapi-recursive-exceptionshttps://github.com/getsentry/sentry-python/tree/antonpirker/fix-fastapi-recursive-exceptions
Conversationhttps://github.com/getsentry/sentry-python/pull/4334
Commits3 (3)https://github.com/getsentry/sentry-python/pull/4334/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4334/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4334/files
Fix FastAPI recursive exceptionshttps://github.com/getsentry/sentry-python/pull/4334#top
antonpirkerhttps://github.com/antonpirker
potel-basehttps://github.com/getsentry/sentry-python/tree/potel-base
antonpirker/fix-fastapi-recursive-exceptionshttps://github.com/getsentry/sentry-python/tree/antonpirker/fix-fastapi-recursive-exceptions
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
Apr 28, 2025https://github.com/getsentry/sentry-python/pull/4334#issue-3024689358
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4334
https://github.com/antonpirker
Handle FastAPI exceptiongroup and also add an hard upper limit of nes…https://github.com/getsentry/sentry-python/pull/4334/commits/40f049d90d9ebccbfd8affa07148ca1ff9c45dfb
40f049dhttps://github.com/getsentry/sentry-python/pull/4334/commits/40f049d90d9ebccbfd8affa07148ca1ff9c45dfb
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
code ownerhttps://github.com/getsentry/sentry-python/blob/c47df82cc0af41467f04594ccaac57e39f134b9b/.github/CODEOWNERS#L1
April 28, 2025 11:52https://github.com/getsentry/sentry-python/pull/4334#event-17433075558
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Apr 28, 2025https://github.com/getsentry/sentry-python/pull/4334#issuecomment-2835000515
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4334
Codecovhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
(a5d0f01)https://app.codecov.io/gh/getsentry/sentry-python/commit/a5d0f0128f1460f9d2c6694c118e47a3a6b251e2?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
(9e87b98)https://app.codecov.io/gh/getsentry/sentry-python/commit/9e87b9852fd9d04ae9f09465307e0e5bb7eb99cb?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Files with missing lineshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
sentry_sdk/utils.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334?src=pr&el=tree&filepath=sentry_sdk%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay91dGlscy5weQ==
1 Missing and 1 partial ⚠️ https://app.codecov.io/gh/getsentry/sentry-python/pull/4334?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Files with missing lineshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
sentry_sdk/utils.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334?src=pr&el=tree&filepath=sentry_sdk%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay91dGlscy5weQ==
3 files with indirect coverage changeshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4334/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4334
antonpirkerhttps://github.com/antonpirker
April 28, 2025 15:24https://github.com/getsentry/sentry-python/pull/4334#commits-pushed-5ef2d28
https://github.com/antonpirker
better conditionhttps://github.com/getsentry/sentry-python/pull/4334/commits/5ef2d28c980fd4ad6bdba825205a2aaeee4874f7
5ef2d28https://github.com/getsentry/sentry-python/pull/4334/commits/5ef2d28c980fd4ad6bdba825205a2aaeee4874f7
https://github.com/antonpirker
Merge branch 'potel-base' into antonpirker/fix-fastapi-recursive-exce…https://github.com/getsentry/sentry-python/pull/4334/commits/9e87b9852fd9d04ae9f09465307e0e5bb7eb99cb
9e87b98https://github.com/getsentry/sentry-python/pull/4334/commits/9e87b9852fd9d04ae9f09465307e0e5bb7eb99cb
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
sentrivanahttps://github.com/sentrivana
sl0thentr0pyhttps://github.com/sl0thentr0py
April 29, 2025 08:35https://github.com/getsentry/sentry-python/pull/4334#event-17450591376
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Apr 30, 2025 https://github.com/getsentry/sentry-python/pull/4334#pullrequestreview-2806202244
View reviewed changes https://github.com/getsentry/sentry-python/pull/4334/files/9e87b9852fd9d04ae9f09465307e0e5bb7eb99cb
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
a88dadfhttps://github.com/getsentry/sentry-python/commit/a88dadf9f121df49a350d74f9cbd09a5907fe1af
May 5, 2025https://github.com/getsentry/sentry-python/pull/4334#event-17518505476
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
May 5, 2025 12:26https://github.com/getsentry/sentry-python/pull/4334#event-17518505952
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
May 5, 2025 https://github.com/getsentry/sentry-python/pull/4334#ref-pullrequest-2344614538
POtel implementation base branch (aka SDK 3.0.0) #3152 https://github.com/getsentry/sentry-python/pull/3152
https://github.com/BYK
BYKhttps://github.com/BYK
Sep 3, 2025 https://github.com/getsentry/sentry-python/pull/4334#ref-pullrequest-3379689704
breaking: Remove Spotlight Django integration #4747 https://github.com/getsentry/sentry-python/pull/4747
Fix recursive FastAPI exceptions #5025 https://github.com/getsentry/sentry-python/issues/5025
Prepare issues for next major #4933 https://github.com/getsentry/sentry-python/issues/4933
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/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%2Fgetsentry%2Fsentry-python%2Fpull%2F4334
https://github.com/sentrivana
sentrivana https://github.com/sentrivana
https://github.com/getsentry/sentry-python/pull/4334/files/9e87b9852fd9d04ae9f09465307e0e5bb7eb99cb
https://github.com/sl0thentr0py
sl0thentr0py https://github.com/sl0thentr0py
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4334
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4334
https://github.com/antonpirker
https://github.com/sentrivana
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.