sentry-python
sentry-python copied to clipboard
AttributeError: _Proxy__local in instrumented_task from sentry
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)
maybe related, but it's already fixed in the version we use https://github.com/celery/celery/issues/3678