sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

AttributeError: _Proxy__local in instrumented_task from sentry

Open sentry[bot] opened this issue 2 years ago • 1 comments

Sentry Issue: SENTRY-143A

AttributeError: 'PromiseProxy' object has no attribute '__thing'
  File "celery/local.py", line 317, in _get_current_object
    return object.__getattribute__(self, '__thing')

AttributeError: _Proxy__local
(8 additional frame(s) were not displayed)
...
  File "sentry/api/endpoints/relay/project_configs.py", line 47, in post
    return self._post(request)
  File "sentry/api/endpoints/relay/project_configs.py", line 69, in _post
    response.update(self._post_or_schedule_by_key(request))
  File "sentry/api/endpoints/relay/project_configs.py", line 139, in _post_or_schedule_by_key
    computed = self._get_cached_or_schedule(key)
  File "sentry/api/endpoints/relay/project_configs.py", line 164, in _get_cached_or_schedule
    schedule_build_project_config(public_key=public_key)
  File "sentry/tasks/relay.py", line 83, in schedule_build_project_config
    build_project_config.delay(public_key=public_key, tmp_scheduled=tmp_scheduled)

sentry[bot] avatar Sep 01 '23 12:09 sentry[bot]

maybe related, but it's already fixed in the version we use https://github.com/celery/celery/issues/3678

sl0thentr0py avatar Sep 01 '23 12:09 sl0thentr0py