{ "eventID": "dd9e1afb828a44d5b4df0183adaee5d8", "dist": null, "userReport": null, "projectID": "3", "previousEventID": null, "message": "get ZeroDivisionError division by zero errors/views.py /divide-zero/", "id": "2144", "size": 8658, "errors": [], "culprit": "/divide-zero/", "title": "ZeroDivisionError: division by zero", "platform": "python", "location": "errors/views.py", "nextEventID": null, "type": "error", "metadata": { "function": "get", "type": "ZeroDivisionError", "value": "division by zero", "filename": "errors/views.py" }, "groupingConfig": { "id": "legacy:2019-03-12" }, "crashFile": null, "tags": [ { "value": "Firefox 75.0", "key": "browser", "_meta": null }, { "value": "Firefox", "key": "browser.name", "_meta": null }, { "value": "no", "key": "handled", "_meta": null }, { "value": "error", "key": "level", "_meta": null }, { "value": "django", "key": "mechanism", "_meta": null }, { "value": "Ubuntu", "key": "os.name", "_meta": null }, { "value": "CPython 3.8.2", "key": "runtime", "_meta": null }, { "value": "CPython", "key": "runtime.name", "_meta": null }, { "value": "2f96b0310f37", "key": "server_name", "_meta": null }, { "value": "/divide-zero/", "key": "transaction", "_meta": null }, { "value": "http://localhost:8001/divide-zero/", "key": "url", "_meta": null } ], "dateCreated": "2020-05-02T16:54:20.488Z", "dateReceived": "2020-05-02T18:37:56.656Z", "user": null, "entries": [ { "type": "exception", "data": { "values": [ { "stacktrace": { "frames": [ { "function": "inner", "colNo": null, "vars": { "get_response": ">", "request": "", "exc": "ZeroDivisionError('division by zero')" }, "symbol": null, "module": "django.core.handlers.exception", "lineNo": 34, "trust": null, "errors": null, "package": null, "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", "inApp": false, "instructionAddr": null, "filename": "django/core/handlers/exception.py", "platform": null, "context": [ [ 29, " can rely on getting a response instead of an exception." ], [30, " \"\"\""], [31, " @wraps(get_response)"], [32, " def inner(request):"], [33, " try:"], [34, " response = get_response(request)"], [35, " except Exception as exc:"], [ 36, " response = response_for_exception(request, exc)" ], [37, " return response"], [38, " return inner"], [39, ""] ], "symbolAddr": null }, { "function": "_get_response", "colNo": null, "vars": { "resolver_match": "ResolverMatch(func=errors.views.DivideZeroView, args=(), kwargs={}, url_name=divide_zero, app_names=[], namespaces=[], route=divide-zero/)", "callback_args": [], "middleware_method": "", "self": "", "request": "", "callback": "", "wrapped_callback": "", "resolver": "", "callback_kwargs": {}, "response": "None" }, "symbol": null, "module": "django.core.handlers.base", "lineNo": 115, "trust": null, "errors": null, "package": null, "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", "inApp": false, "instructionAddr": null, "filename": "django/core/handlers/base.py", "platform": null, "context": [ [110, " if response is None:"], [ 111, " wrapped_callback = self.make_view_atomic(callback)" ], [112, " try:"], [ 113, " response = wrapped_callback(request, *callback_args, **callback_kwargs)" ], [114, " except Exception as e:"], [ 115, " response = self.process_exception_by_middleware(e, request)" ], [116, ""], [ 117, " # Complain if the view returned None (a common error)." ], [118, " if response is None:"], [ 119, " if isinstance(callback, types.FunctionType): # FBV" ], [120, " view_name = callback.__name__"] ], "symbolAddr": null }, { "function": "_get_response", "colNo": null, "vars": { "resolver_match": "ResolverMatch(func=errors.views.DivideZeroView, args=(), kwargs={}, url_name=divide_zero, app_names=[], namespaces=[], route=divide-zero/)", "callback_args": [], "middleware_method": "", "self": "", "request": "", "callback": "", "wrapped_callback": "", "resolver": "", "callback_kwargs": {}, "response": "None" }, "symbol": null, "module": "django.core.handlers.base", "lineNo": 113, "trust": null, "errors": null, "package": null, "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", "inApp": false, "instructionAddr": null, "filename": "django/core/handlers/base.py", "platform": null, "context": [ [108, " break"], [109, ""], [110, " if response is None:"], [ 111, " wrapped_callback = self.make_view_atomic(callback)" ], [112, " try:"], [ 113, " response = wrapped_callback(request, *callback_args, **callback_kwargs)" ], [114, " except Exception as e:"], [ 115, " response = self.process_exception_by_middleware(e, request)" ], [116, ""], [ 117, " # Complain if the view returned None (a common error)." ], [118, " if response is None:"] ], "symbolAddr": null }, { "function": "view", "colNo": null, "vars": { "initkwargs": {}, "self": "", "args": [], "request": "", "kwargs": {}, "cls": "" }, "symbol": null, "module": "django.views.generic.base", "lineNo": 71, "trust": null, "errors": null, "package": null, "absPath": "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", "inApp": false, "instructionAddr": null, "filename": "django/views/generic/base.py", "platform": null, "context": [ [66, " if not hasattr(self, 'request'):"], [67, " raise AttributeError("], [ 68, " \"%s instance has no 'request' attribute. Did you override \"" ], [ 69, " \"setup() and forget to call super()?\" % cls.__name__" ], [70, " )"], [ 71, " return self.dispatch(request, *args, **kwargs)" ], [72, " view.view_class = cls"], [73, " view.view_initkwargs = initkwargs"], [74, ""], [75, " # take name and docstring from class"], [76, " update_wrapper(view, cls, updated=())"] ], "symbolAddr": null }, { "function": "dispatch", "colNo": null, "vars": { "self": "", "handler": ">", "request": "", "args": [], "kwargs": {} }, "symbol": null, "module": "django.views.generic.base", "lineNo": 97, "trust": null, "errors": null, "package": null, "absPath": "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", "inApp": false, "instructionAddr": null, "filename": "django/views/generic/base.py", "platform": null, "context": [ [ 92, " # request method isn't on the approved list." ], [ 93, " if request.method.lower() in self.http_method_names:" ], [ 94, " handler = getattr(self, request.method.lower(), self.http_method_not_allowed)" ], [95, " else:"], [96, " handler = self.http_method_not_allowed"], [97, " return handler(request, *args, **kwargs)"], [98, ""], [ 99, " def http_method_not_allowed(self, request, *args, **kwargs):" ], [100, " logger.warning("], [ 101, " 'Method Not Allowed (%s): %s', request.method, request.path," ], [ 102, " extra={'status_code': 405, 'request': request}" ] ], "symbolAddr": null }, { "function": "get", "colNo": null, "vars": { "self": "", "args": [], "request": "", "kwargs": {} }, "symbol": null, "module": "errors.views", "lineNo": 18, "trust": null, "errors": null, "package": null, "absPath": "/code/errors/views.py", "inApp": false, "instructionAddr": null, "filename": "errors/views.py", "platform": null, "context": [ [13, " template_name = \"home.html\""], [14, ""], [15, ""], [16, "class DivideZeroView(View):"], [17, " def get(self, request, *args, **kwargs):"], [18, " 0/0"], [19, ""], [20, ""], [21, "class DatabaseErrorView(View):"], [22, " def get(self, request, *args, **kwargs):"], [23, " User.objects.get(id=\"9999999\")"] ], "symbolAddr": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": false }, "module": null, "rawStacktrace": null, "mechanism": { "type": "django", "handled": false }, "threadId": null, "value": "division by zero", "type": "ZeroDivisionError" } ], "excOmitted": null, "hasSystemFrames": false } }, { "type": "request", "data": { "fragment": "", "cookies": [], "inferredContentType": "text/plain", "env": { "SERVER_NAME": "2f96b0310f37", "SERVER_PORT": "8001" }, "headers": [ [ "Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" ], ["Accept-Encoding", "gzip, deflate"], ["Accept-Language", "en-US,en;q=0.5"], ["Connection", "keep-alive"], ["Content-Length", ""], ["Content-Type", "text/plain"], ["Host", "localhost:8001"], ["Referer", "http://localhost:8001/"], ["Upgrade-Insecure-Requests", "1"], [ "User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" ] ], "url": "http://localhost:8001/divide-zero/", "query": [ ["foo", "bar"], ["foo", "bars"], ["lol", "ha"] ], "data": null, "method": "GET" } } ], "packages": { "wheel": "0.34.2", "appdirs": "1.4.3" }, "sdk": { "version": "0.14.3", "name": "sentry.python", "upstream": { "url": null, "isNewer": false, "name": "sentry.python" } }, "_meta": { "user": null, "context": null, "entries": {}, "contexts": null, "message": null, "packages": null, "tags": {}, "sdk": null }, "contexts": { "runtime": { "version": "3.8.2", "type": "runtime", "build": "3.8.2 (default, Apr 23 2020, 14:32:57) \n[GCC 8.3.0]", "name": "CPython" }, "os": { "type": "os", "name": "Ubuntu" }, "trace": { "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__", "parent_span_id": "a3a4374fe17c42a0", "trace_id": "9aaeffa209dd4e2d85a084826e8ef964", "span_id": "a8483a699fbe8ac6", "type": "default", "op": "django.middleware" }, "browser": { "version": "75.0", "type": "browser", "name": "Firefox" } }, "fingerprints": ["6c64a182729809288e28b95b0258be01"], "context": { "sys.argv": ["./manage.py", "runserver", "0.0.0.0:8001"] }, "release": null, "groupID": "64" }