René's URL Explorer Experiment


Title: SDK stuck in processing RecursionError:maximum recursion depth exceeded events · Issue #2764 · getsentry/sentry-python · GitHub

Open Graph Title: SDK stuck in processing RecursionError:maximum recursion depth exceeded events · Issue #2764 · getsentry/sentry-python

X Title: SDK stuck in processing RecursionError:maximum recursion depth exceeded events · Issue #2764 · getsentry/sentry-python

Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.40.5 Steps to Reproduce One Sentry user reported an issue where the SDK gets in am apparently endless loop while processing a RecursionError. I was able to reproduce it with a simp...

Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.40.5 Steps to Reproduce One Sentry user reported an issue where the SDK gets in am apparently endless loop while processing a RecursionError...

X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.40.5 Steps to Reproduce One Sentry user reported an issue where the SDK gets in am apparently endless loop while processing a RecursionError...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/2764

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDK stuck in processing RecursionError:maximum recursion depth exceeded events","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n1.40.5\n\n### Steps to Reproduce\n\nOne Sentry user reported an issue where the SDK gets in am apparently endless loop while processing a RecursionError. \r\n\r\nI was able to reproduce it with a simple FastAPI project and setting recursion depth limit to 1M:\r\n\r\n```\r\nimport resource, sys\r\nsys.setrecursionlimit(10**6)\r\n\r\nfrom fastapi import FastAPI\r\nimport logging\r\nfrom sentry_sdk.integrations.fastapi import FastApiIntegration\r\nimport sentry_sdk\r\n\r\nsentry_sdk.init(\r\n    dsn=\"....\",\r\n    debug=True,\r\n)\r\n\r\ndef fibonacci_of(n):\r\n    return fibonacci_of(n)\r\n\r\napp = FastAPI()\r\n\r\n@app.get(\"/\")\r\n        fibonacci_of(50)\r\n        return {\"OH dear\"}\r\n```\r\n\r\nThe code above creates an infinite recursion, which will eventually trigger a `RecursionError:maximum recursion depth exceeded events` error that is captured by the SDK. \r\n\r\nIn a sync environment the SDK will hold the app while processing the event. I suspect it is during stack trace processing, as in this case the stack trace will have 1M frames. \r\n\r\nOriginal report can be found in this [internal ticket.](https://sentry.zendesk.com/agent/tickets/114546)\n\n### Expected Result\n\nThe SDK is able to quickly process the event and attempt to send it, or stop processing in case it takes long freeing the app. \n\n### Actual Result\n\nThe SDK gets in an seemingly infinite loop. ","author":{"url":"https://github.com/rodolfoBee","@type":"Person","name":"rodolfoBee"},"datePublished":"2024-02-26T13:55:19Z","url":"https://github.com/getsentry/sentry-python/issues/2764"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7c00c860-826a-3ef8-1a18-9496d827c4ad
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD216:1148D3:A1BABA:D05024:6B00F419
html-safe-nonce849d73cff1d800acaddd08b847f3d1a67f3f7cf9673bbe544167ace65f9bfd1e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjE2OjExNDhEMzpBMUJBQkE6RDA1MDI0OjZCMDBGNDE5IiwidmlzaXRvcl9pZCI6IjIyMTY4ODQwMjA1ODE1NjEzNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf270e1a44a8809bfa2f42b4c6fc71a096decf424bbacd06641fe7f72caa9cede
hovercard-subject-tagissue:2154244936
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/2764/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cd9c783d2fa6be596cdcb247e23c5e099f8f3aaaf9b0b207186cf6cb7b5dfa91/getsentry/sentry-python/issues/2764
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd9c783d2fa6be596cdcb247e23c5e099f8f3aaaf9b0b207186cf6cb7b5dfa91/getsentry/sentry-python/issues/2764
og:image:altHow do you use Sentry? Sentry Saas (sentry.io) Version 1.40.5 Steps to Reproduce One Sentry user reported an issue where the SDK gets in am apparently endless loop while processing a RecursionError...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerodolfoBee
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/2764#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F2764
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%2Fissues%2F2764
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/2764
Reloadhttps://github.com/getsentry/sentry-python/issues/2764
Reloadhttps://github.com/getsentry/sentry-python/issues/2764
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
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2764
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2764
#4191https://github.com/getsentry/sentry-python/pull/4191
SDK stuck in processing RecursionError:maximum recursion depth exceeded eventshttps://github.com/getsentry/sentry-python/issues/2764#top
#4191https://github.com/getsentry/sentry-python/pull/4191
https://github.com/szokeasaurusrex
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
TriagedHas been looked at recently during old issue triagehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
https://github.com/rodolfoBee
rodolfoBeehttps://github.com/rodolfoBee
on Feb 26, 2024https://github.com/getsentry/sentry-python/issues/2764#issue-2154244936
internal ticket.https://sentry.zendesk.com/agent/tickets/114546
Nexthttps://github.com/getsentry/sentry-python/issues/2764?timeline_page=1
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 26, 2024https://github.com/getsentry/sentry-python/issues/2764#event-11921861641
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 26, 2024https://github.com/getsentry/sentry-python/issues/2764#event-14890968928
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 26, 2024https://github.com/getsentry/sentry-python/issues/2764
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Feb 28, 2024https://github.com/getsentry/sentry-python/issues/2764#issuecomment-1968766752
@rodolfoBeehttps://github.com/rodolfoBee
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 28, 2024https://github.com/getsentry/sentry-python/issues/2764#event-11950213255
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 28, 2024https://github.com/getsentry/sentry-python/issues/2764
sentrivanahttps://github.com/sentrivana
Type: Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Feb 28, 2024https://github.com/getsentry/sentry-python/issues/2764#event-11950226765
szokeasaurusrexhttps://github.com/szokeasaurusrex
TriagedHas been looked at recently during old issue triagehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
on Sep 11, 2024https://github.com/getsentry/sentry-python/issues/2764#event-14214619757
https://github.com/dlahyani
dlahyanihttps://github.com/dlahyani
on Nov 16, 2024https://github.com/getsentry/sentry-python/issues/2764#issuecomment-2480732188
@szokeasaurusrexhttps://github.com/szokeasaurusrex
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 16, 2024https://github.com/getsentry/sentry-python/issues/2764#event-15322042241
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 16, 2024https://github.com/getsentry/sentry-python/issues/2764#event-15322042479
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 16, 2024https://github.com/getsentry/sentry-python/issues/2764
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Nov 18, 2024https://github.com/getsentry/sentry-python/issues/2764#issuecomment-2482717625
@dlahyanihttps://github.com/dlahyani
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 18, 2024https://github.com/getsentry/sentry-python/issues/2764#event-15332605424
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 18, 2024https://github.com/getsentry/sentry-python/issues/2764
antonpirkerhttps://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
szokeasaurusrexhttps://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
antonpirkerhttps://github.com/antonpirker
on Mar 11, 2025https://github.com/getsentry/sentry-python/issues/2764#event-16680882161
szokeasaurusrexhttps://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Mar 19, 2025https://github.com/getsentry/sentry-python/issues/2764#event-16862724044
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Mar 24, 2025https://github.com/getsentry/sentry-python/issues/2764#event-16957411288
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/0482a2ea7507a716a3da99b9a481e1f457421c4d
https://docs.github.com/articles/closing-issues-via-commit-messages
0482a2ehttps://github.com/getsentry/sentry-python/commit/0482a2ea7507a716a3da99b9a481e1f457421c4d
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/47f7812c73c3f66ea49934d26c4ef568ae4447b0
https://docs.github.com/articles/closing-issues-via-commit-messages
47f7812https://github.com/getsentry/sentry-python/commit/47f7812c73c3f66ea49934d26c4ef568ae4447b0
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/09b2f9582e3e05aec9ba323fafd7fb690c0aeae8
https://docs.github.com/articles/closing-issues-via-commit-messages
09b2f95https://github.com/getsentry/sentry-python/commit/09b2f9582e3e05aec9ba323fafd7fb690c0aeae8
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/7e31f8610af76e87bd531fc321dc574cbd2f1438
https://docs.github.com/articles/closing-issues-via-commit-messages
7e31f86https://github.com/getsentry/sentry-python/commit/7e31f8610af76e87bd531fc321dc574cbd2f1438
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/7642fc2add426cda79dd1c2d37e996d4f8ed0ca2
https://docs.github.com/articles/closing-issues-via-commit-messages
7642fc2https://github.com/getsentry/sentry-python/commit/7642fc2add426cda79dd1c2d37e996d4f8ed0ca2
fix: Don't hang when capturing long stacktracehttps://github.com/getsentry/sentry-python/commit/2fa2d4619a51787be29e7509f1340e72af5c395c
https://docs.github.com/articles/closing-issues-via-commit-messages
2fa2d46https://github.com/getsentry/sentry-python/commit/2fa2d4619a51787be29e7509f1340e72af5c395c
szokeasaurusrexhttps://github.com/szokeasaurusrex
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4191https://github.com/getsentry/sentry-python/pull/4191
on Mar 28, 2025https://github.com/getsentry/sentry-python/issues/2764#event-17028175307
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Mar 28, 2025https://github.com/getsentry/sentry-python/issues/2764#event-17028175329
fix: Don't hang when capturing long stacktrace (#4191)https://github.com/getsentry/sentry-python/commit/e432fb46684ad2cd2ec3cc350ec89ab746a741d3
#4191https://github.com/getsentry/sentry-python/pull/4191
https://docs.github.com/articles/closing-issues-via-commit-messages
e432fb4https://github.com/getsentry/sentry-python/commit/e432fb46684ad2cd2ec3cc350ec89ab746a741d3
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 13, 2025https://github.com/getsentry/sentry-python/issues/2764#event-19125003370
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/2764
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2764
szokeasaurusrexhttps://github.com/szokeasaurusrex
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
TriagedHas been looked at recently during old issue triagehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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.