René's URL Explorer Experiment


Title: fix: Add cycle detection to exceptions_from_error by ericapisani · Pull Request #5880 · getsentry/sentry-python · GitHub

Open Graph Title: fix: Add cycle detection to exceptions_from_error by ericapisani · Pull Request #5880 · getsentry/sentry-python

X Title: fix: Add cycle detection to exceptions_from_error by ericapisani · Pull Request #5880 · 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: Summary Add cycle detection to exceptions_from_error() to prevent infinite recursion when exception chains contain cycles This fixes a production issue where FastAPI + multiple BaseHTTPMiddleware ...

X Description: Summary Add cycle detection to exceptions_from_error() to prevent infinite recursion when exception chains contain cycles This fixes a production issue where FastAPI + multiple BaseHTTPMiddleware ...

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

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:fbf0e2f7-7c57-9e5e-caa8-f1e286983954
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id82C8:249135:8E6DD7:BDBB7A:6B00B4BB
html-safe-noncef611d0adadad317d095a7176eb46a08f71c5e25432ef5673ad007cd39cc980a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkM4OjI0OTEzNTo4RTZERDc6QkRCQjdBOjZCMDBCNEJCIiwidmlzaXRvcl9pZCI6IjQ3NTU5OTcxNDQ3MDY0OTU2NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac195b8a17678a580e09fe399c153aa35b05fcfd41013bdfcf71d0776d8f5976aa
hovercard-subject-tagpull_request:3450518495
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/5880/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4122ca61a5b8eb2e0c31ee382e89500603fad9ce6497aae82c280d596f7a3f8c/getsentry/sentry-python/pull/5880
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4122ca61a5b8eb2e0c31ee382e89500603fad9ce6497aae82c280d596f7a3f8c/getsentry/sentry-python/pull/5880
og:image:altSummary Add cycle detection to exceptions_from_error() to prevent infinite recursion when exception chains contain cycles This fixes a production issue where FastAPI + multiple BaseHTTPMiddleware ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
hostnamegithub.com
expected-hostnamegithub.com
None1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2
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
release5429cbfc6aca8c7b9a086a3c8f47400346f38cc9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/5880#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5880
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%2F5880
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/5880
Reloadhttps://github.com/getsentry/sentry-python/pull/5880
Reloadhttps://github.com/getsentry/sentry-python/pull/5880
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
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
ep/py-1949-recursive-fastapi-exception-m4qhttps://github.com/getsentry/sentry-python/tree/ep/py-1949-recursive-fastapi-exception-m4q
Conversationhttps://github.com/getsentry/sentry-python/pull/5880
Commits5 (5)https://github.com/getsentry/sentry-python/pull/5880/commits
Checkshttps://github.com/getsentry/sentry-python/pull/5880/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/5880/files
fix: Add cycle detection to exceptions_from_errorhttps://github.com/getsentry/sentry-python/pull/5880#top
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
ep/py-1949-recursive-fastapi-exception-m4qhttps://github.com/getsentry/sentry-python/tree/ep/py-1949-recursive-fastapi-exception-m4q
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Mar 26, 2026https://github.com/getsentry/sentry-python/pull/5880#issue-4142651773
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
#5025https://github.com/getsentry/sentry-python/issues/5025
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
ericapisanihttps://github.com/ericapisani
March 25, 2026 17:10https://github.com/getsentry/sentry-python/pull/5880#commits-pushed-cacf35c
https://github.com/ericapisani
https://github.com/claude
fix: Add cycle detection to exceptions_from_errorhttps://github.com/getsentry/sentry-python/pull/5880/commits/cacf35c4c8744edb841c5bcc02cc14bf86a8ad95
cacf35chttps://github.com/getsentry/sentry-python/pull/5880/commits/cacf35c4c8744edb841c5bcc02cc14bf86a8ad95
GH-5025https://github.com/getsentry/sentry-python/issues/5025
https://github.com/ericapisani
https://github.com/claude
test: Replace synthetic cycle test with realistic Starlette reproductionhttps://github.com/getsentry/sentry-python/pull/5880/commits/26e99472b498471cc7c38a9a8e83a669d420efa9
26e9947https://github.com/getsentry/sentry-python/pull/5880/commits/26e99472b498471cc7c38a9a8e83a669d420efa9
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Mar 26, 2026https://github.com/getsentry/sentry-python/pull/5880#issuecomment-4133524696
PY-1949 Fix recursive FastAPI exceptionshttps://linear.app/getsentry/issue/PY-1949/fix-recursive-fastapi-exceptions
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 26, 2026https://github.com/getsentry/sentry-python/pull/5880#issuecomment-4133526191
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
Add experimental async transport #4572https://github.com/getsentry/sentry-python/pull/4572
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 26, 2026https://github.com/getsentry/sentry-python/pull/5880#issuecomment-4133532852
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Mar 26, 2026https://github.com/getsentry/sentry-python/pull/5880#issuecomment-4133533303
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Mar 26, 2026 https://github.com/getsentry/sentry-python/pull/5880#pullrequestreview-4013057797
View reviewed changes https://github.com/getsentry/sentry-python/pull/5880/files/26e99472b498471cc7c38a9a8e83a669d420efa9
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/5880#pullrequestreview-4013057797
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
ericapisanihttps://github.com/ericapisani
March 26, 2026 13:51https://github.com/getsentry/sentry-python/pull/5880#commits-pushed-4cc2672
https://github.com/ericapisani
https://github.com/claude
ref: Improve typing and initialization in cycle detectionhttps://github.com/getsentry/sentry-python/pull/5880/commits/4cc2672f1a6e40385edb32a5e86cf940400eed35
4cc2672https://github.com/getsentry/sentry-python/pull/5880/commits/4cc2672f1a6e40385edb32a5e86cf940400eed35
https://github.com/ericapisani
cleanuphttps://github.com/getsentry/sentry-python/pull/5880/commits/90df082a12fcad41ca9c185e9ee59a943e12a362
90df082https://github.com/getsentry/sentry-python/pull/5880/commits/90df082a12fcad41ca9c185e9ee59a943e12a362
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
March 26, 2026 13:03https://github.com/getsentry/sentry-python/pull/5880#event-23932423144
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/34e4a8b3d8f36a314c2e790db748e841ed881c7c/.github/CODEOWNERS#L1
March 26, 2026 13:03https://github.com/getsentry/sentry-python/pull/5880#event-23932423493
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Mar 30, 2026 https://github.com/getsentry/sentry-python/pull/5880#pullrequestreview-4029070631
View reviewed changes https://github.com/getsentry/sentry-python/pull/5880/files/90df082a12fcad41ca9c185e9ee59a943e12a362
sentry_sdk/utils.pyhttps://github.com/getsentry/sentry-python/pull/5880/files/90df082a12fcad41ca9c185e9ee59a943e12a362#diff-e9f88ca6368ce622839e078ed26c741a927752c01ceae64cd504d3ae86de6fd2
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
sentry_sdk/utils.pyhttps://github.com/getsentry/sentry-python/pull/5880/files/90df082a12fcad41ca9c185e9ee59a943e12a362#diff-e9f88ca6368ce622839e078ed26c741a927752c01ceae64cd504d3ae86de6fd2
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/ericapisani
docs: Clarify exception_id and parent_id parameters inhttps://github.com/getsentry/sentry-python/pull/5880/commits/d516f1a8f40ab0c24c1f62e0a70bb19369398710
d516f1ahttps://github.com/getsentry/sentry-python/pull/5880/commits/d516f1a8f40ab0c24c1f62e0a70bb19369398710
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
sl0thentr0pyhttps://github.com/sl0thentr0py
March 30, 2026 11:45https://github.com/getsentry/sentry-python/pull/5880#event-24032821485
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Mar 30, 2026 https://github.com/getsentry/sentry-python/pull/5880#pullrequestreview-4029996972
View reviewed changes https://github.com/getsentry/sentry-python/pull/5880/files/d516f1a8f40ab0c24c1f62e0a70bb19369398710
sl0thentr0pyhttps://github.com/sl0thentr0py
https://github.com/getsentry/sentry-python/pull/5880#pullrequestreview-4029996972
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
7516309https://github.com/getsentry/sentry-python/commit/75163096369e9293407411e06aa071783d763381
Mar 30, 2026https://github.com/getsentry/sentry-python/pull/5880#event-24035203919
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
March 30, 2026 13:01https://github.com/getsentry/sentry-python/pull/5880#event-24035205238
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Mar 31, 2026 https://github.com/getsentry/sentry-python/pull/5880#ref-issue-4177537523
publish: getsentry/sentry-python@2.57.0 getsentry/publish#7650 https://github.com/getsentry/publish/issues/7650
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/5880#ref-commit-0afbf6b
https://github.com/ericapisani
https://github.com/mgaligniana
fix: Add cycle detection to exceptions_from_error (https://github.com/mgaligniana/sentry-python/commit/0afbf6b3bcc1426d2b2480550842dfa347026548
getsentry#5880https://github.com/getsentry/sentry-python/pull/5880
)https://github.com/mgaligniana/sentry-python/commit/0afbf6b3bcc1426d2b2480550842dfa347026548
0afbf6bhttps://github.com/mgaligniana/sentry-python/commit/0afbf6b3bcc1426d2b2480550842dfa347026548
getsentry#5025https://github.com/getsentry/sentry-python/issues/5025
https://claude.com/claude-codehttps://claude.com/claude-code
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%2F5880
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/5880/files/26e99472b498471cc7c38a9a8e83a669d420efa9
https://github.com/sl0thentr0py
sl0thentr0py https://github.com/sl0thentr0py
https://github.com/getsentry/sentry-python/pull/5880/files/d516f1a8f40ab0c24c1f62e0a70bb19369398710
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
Fix recursive FastAPI exceptions https://github.com/getsentry/sentry-python/issues/5025
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5880
https://github.com/ericapisani
https://github.com/sl0thentr0py
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.