123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- {
- "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": "<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>>",
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "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": "<function CsrfViewMiddleware.process_view at 0x7f181e7299d0>",
- "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>",
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "callback": "<function DivideZeroView at 0x7f181e818d30>",
- "wrapped_callback": "<function DivideZeroView at 0x7f181e818d30>",
- "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
- "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": "<function CsrfViewMiddleware.process_view at 0x7f181e7299d0>",
- "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>",
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "callback": "<function DivideZeroView at 0x7f181e818d30>",
- "wrapped_callback": "<function DivideZeroView at 0x7f181e818d30>",
- "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
- "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": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
- "args": [],
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "kwargs": {},
- "cls": "<class 'errors.views.DivideZeroView'>"
- },
- "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": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
- "handler": "<bound method DivideZeroView.get of <errors.views.DivideZeroView object at 0x7f181e6651f0>>",
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "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": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
- "args": [],
- "request": "<WSGIRequest: GET '/divide-zero/'>",
- "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"
- }
|