{"action":"opened","issue":{"url":"https://api.github.com/repos/getsentry/sentry-python/issues/492","repository_url":"https://api.github.com/repos/getsentry/sentry-python","labels_url":"https://api.github.com/repos/getsentry/sentry-python/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/sentry-python/issues/492/comments","events_url":"https://api.github.com/repos/getsentry/sentry-python/issues/492/events","html_url":"https://github.com/getsentry/sentry-python/issues/492","id":487054574,"node_id":"MDU6SXNzdWU0ODcwNTQ1NzQ=","number":492,"title":"RuntimeError and SystemError generated by DjangoIntegration ","user":{"login":"claudiu-olteanu-hs","id":28756531,"node_id":"MDQ6VXNlcjI4NzU2NTMx","avatar_url":"https://avatars2.githubusercontent.com/u/28756531?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiu-olteanu-hs","html_url":"https://github.com/claudiu-olteanu-hs","followers_url":"https://api.github.com/users/claudiu-olteanu-hs/followers","following_url":"https://api.github.com/users/claudiu-olteanu-hs/following{/other_user}","gists_url":"https://api.github.com/users/claudiu-olteanu-hs/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiu-olteanu-hs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiu-olteanu-hs/subscriptions","organizations_url":"https://api.github.com/users/claudiu-olteanu-hs/orgs","repos_url":"https://api.github.com/users/claudiu-olteanu-hs/repos","events_url":"https://api.github.com/users/claudiu-olteanu-hs/events{/privacy}","received_events_url":"https://api.github.com/users/claudiu-olteanu-hs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-29T16:14:23Z","updated_at":"2019-08-29T16:14:23Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nAfter we migrated from raven to sentry-sdk, we started noticing some new errors logged by `uwsgi` server. Most of the time, they are usually generated when the server is under load, so it could be a race condition.\r\n\r\nHere is some information about our infrastructure:\r\n```\r\nPython 2.7.16\r\n[GCC 4.8.4] on linux2 (ubuntu:trusty)\r\n\r\nPython packages:\r\n- Django==1.6.11\r\n- django-tastypie==0.11.1\r\n- uWSGI==2.0.11.2\r\n- sentry-sdk==0.11.1\r\n```\r\n\r\nThe generated errors:\r\n```\r\n[sentry] ERROR: Internal error in sentry_sdk\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/utils.py\", line 50, in capture_internal_exceptions\r\n    yield\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/serializer.py\", line 208, in _serialize_node\r\n    obj, max_depth=max_depth, max_breadth=max_breadth\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/serializer.py\", line 268, in _serialize_node_impl\r\n    for i, v in enumerate(obj):\r\nRuntimeError: deque mutated during iteration\r\n [sentry] DEBUG: Sending event, type:null level:error event_id:1264a29db33f45c1ae18487a66795325 project:42340 host:sentry.io\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/django/__init__.py\", line 102, in sentry_patched_wsgi_handler\r\n    environ, start_response\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/wsgi.py\", line 86, in __call__\r\n    hub = Hub(Hub.current)\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/hub.py\", line 205, in __init__\r\n    scope = copy.copy(other_scope)\r\n  File \"/usr/local/lib/python2.7/copy.py\", line 80, in copy\r\n    return copier(x)\r\n  File \"/usr/local/lib/python2.7/site-packages/sentry_sdk/scope.py\", line 302, in __copy__\r\n    rv._breadcrumbs = copy(self._breadcrumbs)\r\n  File \"/usr/local/lib/python2.7/copy.py\", line 80, in copy\r\n    return copier(x)\r\nSystemError: Objects/tupleobject.c:142: bad argument to internal function\r\n```\r\n\r\nLet me know if I can share with you other information that can give you more insights.\r\n\r\nCheers,\r\nClaudiu"}}
{"actor":{"display_login":"claudiu-olteanu-hs"}}