You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError raised in the celery integration when calling a task.apply_async without arguments #2554
Traceback (most recent call last):
File "/virtualenv/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py", line 306, in _inner
reraise(*exc_info)
File "/virtualenv/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 115, in reraise
raise value
File "/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py", line 301, in _inner
return f(*args, **kwargs)
File "/virtualenv/lib/python3.9/site-packages/celery/app/trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "/app/src/virus_scanner/tasks.py", line 79, in load_from_queue
load_from_queue.apply_async()
File "/virtualenv/lib/python3.9/site-packages/celery_common/tasks.py", line 57, in apply_async
return super().apply_async(args, kwargs, **options)
File "/virtualenv/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py", line 169, in apply_async
task_started_from_beat = args[1][0] == "BEAT"
TypeError: 'NoneType' object is not subscriptable
Expected Result
the task is executed properly
Actual Result
a 500 error is raised
Reacted by Mikail, Paweł Adamczak and Marcel Jackwerth
Activity
rodolfoBee commentedon Dec 1, 2023
A similar issue was reported in this internal ticket.
antonpirker commentedon Dec 1, 2023
Hey @avallbona ! Thanks for reporting this! We will take a look!
17 remaining items
slapshin commentedon Jan 11, 2024
@szokeasaurusrex yes, it was my mistake. For now, everything is fine. Thank you!
sentrivana commentedon Jan 11, 2024
Thanks for reporting back @slapshin! I'll close this again.
szokeasaurusrex commentedon Jan 11, 2024
Good to hear, @slapshin! I am closing the issue for now