René's URL Explorer Experiment


Title: TypeError raised in the celery integration when calling a task.apply_async without arguments · Issue #2554 · getsentry/sentry-python · GitHub

Open Graph Title: TypeError raised in the celery integration when calling a task.apply_async without arguments · Issue #2554 · getsentry/sentry-python

X Title: TypeError raised in the celery integration when calling a task.apply_async without arguments · Issue #2554 · getsentry/sentry-python

Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.36.0 Steps to Reproduce Having a project with Python 3.9, Django 3.2.23, sentry_sdk>=1.36.0 and celery 5.2.6, with the sentry_sdk configured as: sentry_sdk.init( release=f"project@...

Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.36.0 Steps to Reproduce Having a project with Python 3.9, Django 3.2.23, sentry_sdk>=1.36.0 and celery 5.2.6, with the sentry_sdk configured...

X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.36.0 Steps to Reproduce Having a project with Python 3.9, Django 3.2.23, sentry_sdk>=1.36.0 and celery 5.2.6, with the sentry_sdk configu...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError raised in the celery integration when calling a task.apply_async without arguments","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n1.36.0\n\n### Steps to Reproduce\n\nHaving a project with Python 3.9, Django 3.2.23, sentry_sdk>=1.36.0 and celery 5.2.6, with the sentry_sdk configured as:\r\n\r\n```\r\nsentry_sdk.init(\r\n        release=f\"project@{VERSION}\",\r\n        before_send=before_send,\r\n        before_breadcrumb=before_breadcrumb,\r\n        environment=ENVIRONMENT,\r\n        integrations=[CeleryIntegration(), DjangoIntegration(), RedisIntegration()],\r\n        ignore_errors=SENTRY_IGNORE_EXCEPTIONS,\r\n        send_default_pii=True,\r\n        sample_rate=min(SENTRY_EVENTS_SAMPLE_RATE, 1.0),\r\n        traces_sample_rate=min(SENTRY_TRACES_SAMPLE_RATE, 1.0),\r\n    )\r\n```\r\nwhen calling a task directly (not scheduled with celery beat) with the  `.apply_async()` method without params, the sentry_sdk raises a `TypeError` exception in https://github.com/getsentry/sentry-python/pull/2510/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10bR169 e.g.:\r\n\r\n```\r\nTraceback (most recent call last):\r\nFile \"/virtualenv/lib/python3.9/site-packages/celery/app/trace.py\", line 451, in trace_task\r\nR = retval = fun(*args, **kwargs)\r\nFile \"/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py\", line 306, in _inner\r\nreraise(*exc_info)\r\nFile \"/virtualenv/lib/python3.9/site-packages/sentry_sdk/_compat.py\", line 115, in reraise\r\nraise value\r\nFile \"/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py\", line 301, in _inner\r\nreturn f(*args, **kwargs)\r\nFile \"/virtualenv/lib/python3.9/site-packages/celery/app/trace.py\", line 734, in __protected_call__\r\nreturn self.run(*args, **kwargs)\r\nFile \"/app/src/virus_scanner/tasks.py\", line 79, in load_from_queue\r\nload_from_queue.apply_async()\r\nFile \"/virtualenv/lib/python3.9/site-packages/celery_common/tasks.py\", line 57, in apply_async\r\nreturn super().apply_async(args, kwargs, **options)\r\nFile \"/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py\", line 169, in apply_async\r\ntask_started_from_beat = args[1][0] == \"BEAT\"\r\nTypeError: 'NoneType' object is not subscriptable\r\n```\r\n\r\n\n\n### Expected Result\n\nthe task is executed properly \n\n### Actual Result\n\na 500 error is raised","author":{"url":"https://github.com/avallbona","@type":"Person","name":"avallbona"},"datePublished":"2023-12-01T10:00:23Z","url":"https://github.com/getsentry/sentry-python/issues/2554"}

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:fd73e8f6-063e-a079-b371-b8d0b1b48eda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA44:235389:48C2DC:61E574:6B008E14
html-safe-noncef24593d3208864960e929b0f3436173799518b92a4f331c4073a4b2d7c45a60a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTQ0OjIzNTM4OTo0OEMyREM6NjFFNTc0OjZCMDA4RTE0IiwidmlzaXRvcl9pZCI6IjU5Mzc5OTczOTg5NzMzODYyNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac31f22b84c41c00ff8da671c3709ee27a71463ac2a699da3ea0f68b6cb3908313
hovercard-subject-tagissue:2020527958
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/2554/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4517765e914c8bc50a4e3953ace970a8ac3fdeeee1ea4d21313be889bc01b892/getsentry/sentry-python/issues/2554
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4517765e914c8bc50a4e3953ace970a8ac3fdeeee1ea4d21313be889bc01b892/getsentry/sentry-python/issues/2554
og:image:altHow do you use Sentry? Sentry Saas (sentry.io) Version 1.36.0 Steps to Reproduce Having a project with Python 3.9, Django 3.2.23, sentry_sdk>=1.36.0 and celery 5.2.6, with the sentry_sdk configured...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameavallbona
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
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
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/2554#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F2554
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%2F2554
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/2554
Reloadhttps://github.com/getsentry/sentry-python/issues/2554
Reloadhttps://github.com/getsentry/sentry-python/issues/2554
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 requests41 (41)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/2554
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2554
#2575https://github.com/getsentry/sentry-python/pull/2575
TypeError raised in the celery integration when calling a task.apply_async without argumentshttps://github.com/getsentry/sentry-python/issues/2554#top
#2575https://github.com/getsentry/sentry-python/pull/2575
https://github.com/szokeasaurusrex
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Djangohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Django%22
https://github.com/avallbona
avallbonahttps://github.com/avallbona
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#issue-2020527958
https://github.com/getsentry/sentry-python/pull/2510/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10bR169https://github.com/getsentry/sentry-python/pull/2510/files#diff-bbcc458d29b0f1880cf429abbf8a94a5e8517f61072945d783e44fec4969a10bR169
Nexthttps://github.com/getsentry/sentry-python/issues/2554?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 Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11120104760
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-14878861311
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554
antonpirkerhttps://github.com/antonpirker
Type: Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121991975
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 Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121992163
antonpirkerhttps://github.com/antonpirker
Integration: Djangohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Django%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121992681
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 Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121992947
antonpirkerhttps://github.com/antonpirker
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121994129
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554
https://github.com/rodolfoBee
rodolfoBeehttps://github.com/rodolfoBee
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#issuecomment-1836088226
internal tickethttps://sentry.zendesk.com/agent/tickets/108717
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 Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#event-11121997999
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Dec 1, 2023https://github.com/getsentry/sentry-python/issues/2554#issuecomment-1836088634
@avallbonahttps://github.com/avallbona
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554
sentrivanahttps://github.com/sentrivana
Waiting for: Communityhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#event-11453151815
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554
https://github.com/slapshin
slapshinhttps://github.com/slapshin
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#issuecomment-1887267541
@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
Waiting for: Communityhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#event-11457241629
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#issuecomment-1887291282
@slapshinhttps://github.com/slapshin
sentrivanahttps://github.com/sentrivana
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#event-11457342524
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 Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#event-11457342891
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Jan 11, 2024https://github.com/getsentry/sentry-python/issues/2554#issuecomment-1887292896
@slapshinhttps://github.com/slapshin
stephanie-andersonhttps://github.com/stephanie-anderson
Type: Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Nov 21, 2024https://github.com/getsentry/sentry-python/issues/2554#event-15380629047
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 13, 2025https://github.com/getsentry/sentry-python/issues/2554#event-19125016093
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/2554
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2554
szokeasaurusrexhttps://github.com/szokeasaurusrex
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Djangohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Django%22
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
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.