python_zero_division.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. {
  2. "eventID": "dd9e1afb828a44d5b4df0183adaee5d8",
  3. "dist": null,
  4. "userReport": null,
  5. "projectID": "3",
  6. "previousEventID": null,
  7. "message": "get ZeroDivisionError division by zero errors/views.py /divide-zero/",
  8. "id": "2144",
  9. "size": 8658,
  10. "errors": [],
  11. "culprit": "/divide-zero/",
  12. "title": "ZeroDivisionError: division by zero",
  13. "platform": "python",
  14. "location": "errors/views.py",
  15. "nextEventID": null,
  16. "type": "error",
  17. "metadata": {
  18. "function": "get",
  19. "type": "ZeroDivisionError",
  20. "value": "division by zero",
  21. "filename": "errors/views.py"
  22. },
  23. "groupingConfig": { "id": "legacy:2019-03-12" },
  24. "crashFile": null,
  25. "tags": [
  26. { "value": "Firefox 75.0", "key": "browser", "_meta": null },
  27. { "value": "Firefox", "key": "browser.name", "_meta": null },
  28. { "value": "no", "key": "handled", "_meta": null },
  29. { "value": "error", "key": "level", "_meta": null },
  30. { "value": "django", "key": "mechanism", "_meta": null },
  31. { "value": "Ubuntu", "key": "os.name", "_meta": null },
  32. { "value": "CPython 3.8.2", "key": "runtime", "_meta": null },
  33. { "value": "CPython", "key": "runtime.name", "_meta": null },
  34. { "value": "2f96b0310f37", "key": "server_name", "_meta": null },
  35. { "value": "/divide-zero/", "key": "transaction", "_meta": null },
  36. {
  37. "value": "http://localhost:8001/divide-zero/",
  38. "key": "url",
  39. "_meta": null
  40. }
  41. ],
  42. "dateCreated": "2020-05-02T16:54:20.488Z",
  43. "dateReceived": "2020-05-02T18:37:56.656Z",
  44. "user": null,
  45. "entries": [
  46. {
  47. "type": "exception",
  48. "data": {
  49. "values": [
  50. {
  51. "stacktrace": {
  52. "frames": [
  53. {
  54. "function": "inner",
  55. "colNo": null,
  56. "vars": {
  57. "get_response": "<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>>",
  58. "request": "<WSGIRequest: GET '/divide-zero/'>",
  59. "exc": "ZeroDivisionError('division by zero')"
  60. },
  61. "symbol": null,
  62. "module": "django.core.handlers.exception",
  63. "lineNo": 34,
  64. "trust": null,
  65. "errors": null,
  66. "package": null,
  67. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py",
  68. "inApp": false,
  69. "instructionAddr": null,
  70. "filename": "django/core/handlers/exception.py",
  71. "platform": null,
  72. "context": [
  73. [
  74. 29,
  75. " can rely on getting a response instead of an exception."
  76. ],
  77. [30, " \"\"\""],
  78. [31, " @wraps(get_response)"],
  79. [32, " def inner(request):"],
  80. [33, " try:"],
  81. [34, " response = get_response(request)"],
  82. [35, " except Exception as exc:"],
  83. [
  84. 36,
  85. " response = response_for_exception(request, exc)"
  86. ],
  87. [37, " return response"],
  88. [38, " return inner"],
  89. [39, ""]
  90. ],
  91. "symbolAddr": null
  92. },
  93. {
  94. "function": "_get_response",
  95. "colNo": null,
  96. "vars": {
  97. "resolver_match": "ResolverMatch(func=errors.views.DivideZeroView, args=(), kwargs={}, url_name=divide_zero, app_names=[], namespaces=[], route=divide-zero/)",
  98. "callback_args": [],
  99. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7f181e7299d0>",
  100. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>",
  101. "request": "<WSGIRequest: GET '/divide-zero/'>",
  102. "callback": "<function DivideZeroView at 0x7f181e818d30>",
  103. "wrapped_callback": "<function DivideZeroView at 0x7f181e818d30>",
  104. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  105. "callback_kwargs": {},
  106. "response": "None"
  107. },
  108. "symbol": null,
  109. "module": "django.core.handlers.base",
  110. "lineNo": 115,
  111. "trust": null,
  112. "errors": null,
  113. "package": null,
  114. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  115. "inApp": false,
  116. "instructionAddr": null,
  117. "filename": "django/core/handlers/base.py",
  118. "platform": null,
  119. "context": [
  120. [110, " if response is None:"],
  121. [
  122. 111,
  123. " wrapped_callback = self.make_view_atomic(callback)"
  124. ],
  125. [112, " try:"],
  126. [
  127. 113,
  128. " response = wrapped_callback(request, *callback_args, **callback_kwargs)"
  129. ],
  130. [114, " except Exception as e:"],
  131. [
  132. 115,
  133. " response = self.process_exception_by_middleware(e, request)"
  134. ],
  135. [116, ""],
  136. [
  137. 117,
  138. " # Complain if the view returned None (a common error)."
  139. ],
  140. [118, " if response is None:"],
  141. [
  142. 119,
  143. " if isinstance(callback, types.FunctionType): # FBV"
  144. ],
  145. [120, " view_name = callback.__name__"]
  146. ],
  147. "symbolAddr": null
  148. },
  149. {
  150. "function": "_get_response",
  151. "colNo": null,
  152. "vars": {
  153. "resolver_match": "ResolverMatch(func=errors.views.DivideZeroView, args=(), kwargs={}, url_name=divide_zero, app_names=[], namespaces=[], route=divide-zero/)",
  154. "callback_args": [],
  155. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7f181e7299d0>",
  156. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7f181f5b9fa0>",
  157. "request": "<WSGIRequest: GET '/divide-zero/'>",
  158. "callback": "<function DivideZeroView at 0x7f181e818d30>",
  159. "wrapped_callback": "<function DivideZeroView at 0x7f181e818d30>",
  160. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  161. "callback_kwargs": {},
  162. "response": "None"
  163. },
  164. "symbol": null,
  165. "module": "django.core.handlers.base",
  166. "lineNo": 113,
  167. "trust": null,
  168. "errors": null,
  169. "package": null,
  170. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  171. "inApp": false,
  172. "instructionAddr": null,
  173. "filename": "django/core/handlers/base.py",
  174. "platform": null,
  175. "context": [
  176. [108, " break"],
  177. [109, ""],
  178. [110, " if response is None:"],
  179. [
  180. 111,
  181. " wrapped_callback = self.make_view_atomic(callback)"
  182. ],
  183. [112, " try:"],
  184. [
  185. 113,
  186. " response = wrapped_callback(request, *callback_args, **callback_kwargs)"
  187. ],
  188. [114, " except Exception as e:"],
  189. [
  190. 115,
  191. " response = self.process_exception_by_middleware(e, request)"
  192. ],
  193. [116, ""],
  194. [
  195. 117,
  196. " # Complain if the view returned None (a common error)."
  197. ],
  198. [118, " if response is None:"]
  199. ],
  200. "symbolAddr": null
  201. },
  202. {
  203. "function": "view",
  204. "colNo": null,
  205. "vars": {
  206. "initkwargs": {},
  207. "self": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
  208. "args": [],
  209. "request": "<WSGIRequest: GET '/divide-zero/'>",
  210. "kwargs": {},
  211. "cls": "<class 'errors.views.DivideZeroView'>"
  212. },
  213. "symbol": null,
  214. "module": "django.views.generic.base",
  215. "lineNo": 71,
  216. "trust": null,
  217. "errors": null,
  218. "package": null,
  219. "absPath": "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py",
  220. "inApp": false,
  221. "instructionAddr": null,
  222. "filename": "django/views/generic/base.py",
  223. "platform": null,
  224. "context": [
  225. [66, " if not hasattr(self, 'request'):"],
  226. [67, " raise AttributeError("],
  227. [
  228. 68,
  229. " \"%s instance has no 'request' attribute. Did you override \""
  230. ],
  231. [
  232. 69,
  233. " \"setup() and forget to call super()?\" % cls.__name__"
  234. ],
  235. [70, " )"],
  236. [
  237. 71,
  238. " return self.dispatch(request, *args, **kwargs)"
  239. ],
  240. [72, " view.view_class = cls"],
  241. [73, " view.view_initkwargs = initkwargs"],
  242. [74, ""],
  243. [75, " # take name and docstring from class"],
  244. [76, " update_wrapper(view, cls, updated=())"]
  245. ],
  246. "symbolAddr": null
  247. },
  248. {
  249. "function": "dispatch",
  250. "colNo": null,
  251. "vars": {
  252. "self": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
  253. "handler": "<bound method DivideZeroView.get of <errors.views.DivideZeroView object at 0x7f181e6651f0>>",
  254. "request": "<WSGIRequest: GET '/divide-zero/'>",
  255. "args": [],
  256. "kwargs": {}
  257. },
  258. "symbol": null,
  259. "module": "django.views.generic.base",
  260. "lineNo": 97,
  261. "trust": null,
  262. "errors": null,
  263. "package": null,
  264. "absPath": "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py",
  265. "inApp": false,
  266. "instructionAddr": null,
  267. "filename": "django/views/generic/base.py",
  268. "platform": null,
  269. "context": [
  270. [
  271. 92,
  272. " # request method isn't on the approved list."
  273. ],
  274. [
  275. 93,
  276. " if request.method.lower() in self.http_method_names:"
  277. ],
  278. [
  279. 94,
  280. " handler = getattr(self, request.method.lower(), self.http_method_not_allowed)"
  281. ],
  282. [95, " else:"],
  283. [96, " handler = self.http_method_not_allowed"],
  284. [97, " return handler(request, *args, **kwargs)"],
  285. [98, ""],
  286. [
  287. 99,
  288. " def http_method_not_allowed(self, request, *args, **kwargs):"
  289. ],
  290. [100, " logger.warning("],
  291. [
  292. 101,
  293. " 'Method Not Allowed (%s): %s', request.method, request.path,"
  294. ],
  295. [
  296. 102,
  297. " extra={'status_code': 405, 'request': request}"
  298. ]
  299. ],
  300. "symbolAddr": null
  301. },
  302. {
  303. "function": "get",
  304. "colNo": null,
  305. "vars": {
  306. "self": "<errors.views.DivideZeroView object at 0x7f181e6651f0>",
  307. "args": [],
  308. "request": "<WSGIRequest: GET '/divide-zero/'>",
  309. "kwargs": {}
  310. },
  311. "symbol": null,
  312. "module": "errors.views",
  313. "lineNo": 18,
  314. "trust": null,
  315. "errors": null,
  316. "package": null,
  317. "absPath": "/code/errors/views.py",
  318. "inApp": false,
  319. "instructionAddr": null,
  320. "filename": "errors/views.py",
  321. "platform": null,
  322. "context": [
  323. [13, " template_name = \"home.html\""],
  324. [14, ""],
  325. [15, ""],
  326. [16, "class DivideZeroView(View):"],
  327. [17, " def get(self, request, *args, **kwargs):"],
  328. [18, " 0/0"],
  329. [19, ""],
  330. [20, ""],
  331. [21, "class DatabaseErrorView(View):"],
  332. [22, " def get(self, request, *args, **kwargs):"],
  333. [23, " User.objects.get(id=\"9999999\")"]
  334. ],
  335. "symbolAddr": null
  336. }
  337. ],
  338. "framesOmitted": null,
  339. "registers": null,
  340. "hasSystemFrames": false
  341. },
  342. "module": null,
  343. "rawStacktrace": null,
  344. "mechanism": { "type": "django", "handled": false },
  345. "threadId": null,
  346. "value": "division by zero",
  347. "type": "ZeroDivisionError"
  348. }
  349. ],
  350. "excOmitted": null,
  351. "hasSystemFrames": false
  352. }
  353. },
  354. {
  355. "type": "request",
  356. "data": {
  357. "fragment": "",
  358. "cookies": [],
  359. "inferredContentType": "text/plain",
  360. "env": { "SERVER_NAME": "2f96b0310f37", "SERVER_PORT": "8001" },
  361. "headers": [
  362. [
  363. "Accept",
  364. "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  365. ],
  366. ["Accept-Encoding", "gzip, deflate"],
  367. ["Accept-Language", "en-US,en;q=0.5"],
  368. ["Connection", "keep-alive"],
  369. ["Content-Length", ""],
  370. ["Content-Type", "text/plain"],
  371. ["Host", "localhost:8001"],
  372. ["Referer", "http://localhost:8001/"],
  373. ["Upgrade-Insecure-Requests", "1"],
  374. [
  375. "User-Agent",
  376. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"
  377. ]
  378. ],
  379. "url": "http://localhost:8001/divide-zero/",
  380. "query": [
  381. ["foo", "bar"],
  382. ["foo", "bars"],
  383. ["lol", "ha"]
  384. ],
  385. "data": null,
  386. "method": "GET"
  387. }
  388. }
  389. ],
  390. "packages": { "wheel": "0.34.2", "appdirs": "1.4.3" },
  391. "sdk": {
  392. "version": "0.14.3",
  393. "name": "sentry.python",
  394. "upstream": { "url": null, "isNewer": false, "name": "sentry.python" }
  395. },
  396. "_meta": {
  397. "user": null,
  398. "context": null,
  399. "entries": {},
  400. "contexts": null,
  401. "message": null,
  402. "packages": null,
  403. "tags": {},
  404. "sdk": null
  405. },
  406. "contexts": {
  407. "runtime": {
  408. "version": "3.8.2",
  409. "type": "runtime",
  410. "build": "3.8.2 (default, Apr 23 2020, 14:32:57) \n[GCC 8.3.0]",
  411. "name": "CPython"
  412. },
  413. "os": { "type": "os", "name": "Ubuntu" },
  414. "trace": {
  415. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  416. "parent_span_id": "a3a4374fe17c42a0",
  417. "trace_id": "9aaeffa209dd4e2d85a084826e8ef964",
  418. "span_id": "a8483a699fbe8ac6",
  419. "type": "default",
  420. "op": "django.middleware"
  421. },
  422. "browser": { "version": "75.0", "type": "browser", "name": "Firefox" }
  423. },
  424. "fingerprints": ["6c64a182729809288e28b95b0258be01"],
  425. "context": { "sys.argv": ["./manage.py", "runserver", "0.0.0.0:8001"] },
  426. "release": null,
  427. "groupID": "64"
  428. }