incoming.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. {
  2. "level": "error",
  3. "exception": {
  4. "values": [
  5. {
  6. "module": null,
  7. "type": "ZeroDivisionError",
  8. "value": "division by zero",
  9. "mechanism": { "type": "django", "handled": false },
  10. "stacktrace": {
  11. "frames": [
  12. {
  13. "filename": "django/core/handlers/exception.py",
  14. "abs_path": "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py",
  15. "function": "inner",
  16. "module": "django.core.handlers.exception",
  17. "lineno": 47,
  18. "pre_context": [
  19. " return inner",
  20. " else:",
  21. " @wraps(get_response)",
  22. " def inner(request):",
  23. " try:"
  24. ],
  25. "context_line": " response = get_response(request)",
  26. "post_context": [
  27. " except Exception as exc:",
  28. " response = response_for_exception(request, exc)",
  29. " return response",
  30. " return inner",
  31. ""
  32. ],
  33. "vars": {
  34. "request": "<WSGIRequest: GET '/divide-zero/'>",
  35. "exc": "ZeroDivisionError('division by zero')",
  36. "get_response": "<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f0e5e7675e0>>"
  37. },
  38. "in_app": true
  39. },
  40. {
  41. "filename": "django/core/handlers/base.py",
  42. "abs_path": "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py",
  43. "function": "_get_response",
  44. "module": "django.core.handlers.base",
  45. "lineno": 179,
  46. "pre_context": [
  47. " wrapped_callback = self.make_view_atomic(callback)",
  48. " # If it is an asynchronous view, run it in a subthread.",
  49. " if asyncio.iscoroutinefunction(wrapped_callback):",
  50. " wrapped_callback = async_to_sync(wrapped_callback)",
  51. " try:"
  52. ],
  53. "context_line": " response = wrapped_callback(request, *callback_args, **callback_kwargs)",
  54. "post_context": [
  55. " except Exception as e:",
  56. " response = self.process_exception_by_middleware(e, request)",
  57. " if response is None:",
  58. " raise",
  59. ""
  60. ],
  61. "vars": {
  62. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7f0e5e7675e0>",
  63. "request": "<WSGIRequest: GET '/divide-zero/'>",
  64. "response": "None",
  65. "callback": "<function DivideZeroView at 0x7f0e5ceee670>",
  66. "callback_args": [],
  67. "callback_kwargs": {},
  68. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7f0e5cdc5e50>",
  69. "wrapped_callback": "<function DivideZeroView at 0x7f0e5c1b7dc0>"
  70. },
  71. "in_app": true
  72. },
  73. {
  74. "filename": "django/views/generic/base.py",
  75. "abs_path": "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py",
  76. "function": "view",
  77. "module": "django.views.generic.base",
  78. "lineno": 70,
  79. "pre_context": [
  80. " if not hasattr(self, 'request'):",
  81. " raise AttributeError(",
  82. " \"%s instance has no 'request' attribute. Did you override \"",
  83. " \"setup() and forget to call super()?\" % cls.__name__",
  84. " )"
  85. ],
  86. "context_line": " return self.dispatch(request, *args, **kwargs)",
  87. "post_context": [
  88. " view.view_class = cls",
  89. " view.view_initkwargs = initkwargs",
  90. "",
  91. " # take name and docstring from class",
  92. " update_wrapper(view, cls, updated=())"
  93. ],
  94. "vars": {
  95. "request": "<WSGIRequest: GET '/divide-zero/'>",
  96. "args": [],
  97. "kwargs": {},
  98. "self": "<errors.views.DivideZeroView object at 0x7f0e5c4e08e0>",
  99. "cls": "<class 'errors.views.DivideZeroView'>",
  100. "initkwargs": {}
  101. },
  102. "in_app": true
  103. },
  104. {
  105. "filename": "django/views/generic/base.py",
  106. "abs_path": "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py",
  107. "function": "dispatch",
  108. "module": "django.views.generic.base",
  109. "lineno": 98,
  110. "pre_context": [
  111. " # request method isn't on the approved list.",
  112. " if request.method.lower() in self.http_method_names:",
  113. " handler = getattr(self, request.method.lower(), self.http_method_not_allowed)",
  114. " else:",
  115. " handler = self.http_method_not_allowed"
  116. ],
  117. "context_line": " return handler(request, *args, **kwargs)",
  118. "post_context": [
  119. "",
  120. " def http_method_not_allowed(self, request, *args, **kwargs):",
  121. " logger.warning(",
  122. " 'Method Not Allowed (%s): %s', request.method, request.path,",
  123. " extra={'status_code': 405, 'request': request}"
  124. ],
  125. "vars": {
  126. "self": "<errors.views.DivideZeroView object at 0x7f0e5c4e08e0>",
  127. "request": "<WSGIRequest: GET '/divide-zero/'>",
  128. "args": [],
  129. "kwargs": {},
  130. "handler": "<bound method DivideZeroView.get of <errors.views.DivideZeroView object at 0x7f0e5c4e08e0>>"
  131. },
  132. "in_app": true
  133. },
  134. {
  135. "filename": "errors/views.py",
  136. "abs_path": "/code/errors/views.py",
  137. "function": "get",
  138. "module": "errors.views",
  139. "lineno": 18,
  140. "pre_context": [
  141. " template_name = \"home.html\"",
  142. "",
  143. "",
  144. "class DivideZeroView(View):",
  145. " def get(self, request, *args, **kwargs):"
  146. ],
  147. "context_line": " 0/0",
  148. "post_context": [
  149. "",
  150. "",
  151. "class DatabaseErrorView(View):",
  152. " def get(self, request, *args, **kwargs):",
  153. " User.objects.get(id=\"9999999\")"
  154. ],
  155. "vars": {
  156. "self": "<errors.views.DivideZeroView object at 0x7f0e5c4e08e0>",
  157. "request": "<WSGIRequest: GET '/divide-zero/'>",
  158. "args": [],
  159. "kwargs": {}
  160. },
  161. "in_app": true
  162. }
  163. ]
  164. }
  165. }
  166. ]
  167. },
  168. "event_id": "ddfd2bbf7b4c482983bda75c70771345",
  169. "timestamp": "2020-12-28T21:04:55.706694Z",
  170. "breadcrumbs": { "values": [] },
  171. "transaction": "/divide-zero/",
  172. "contexts": {
  173. "trace": {
  174. "trace_id": "b87083e8cc1b439ebcd73ec503cc0d81",
  175. "span_id": "904600a6494e8110",
  176. "parent_span_id": "92a90c2f0b14fdc2",
  177. "op": "django.middleware",
  178. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__"
  179. },
  180. "runtime": {
  181. "name": "CPython",
  182. "version": "3.9.1",
  183. "build": "3.9.1 (default, Dec 11 2020, 14:22:09) \n[GCC 8.3.0]"
  184. }
  185. },
  186. "modules": {
  187. "django-error-factory": "0.1.0",
  188. "wheel": "0.36.2",
  189. "webencodings": "0.5.1",
  190. "wcwidth": "0.2.5",
  191. "virtualenv": "20.2.2",
  192. "urllib3": "1.26.2",
  193. "typed-ast": "1.4.1",
  194. "traitlets": "4.3.3",
  195. "tomlkit": "0.7.0",
  196. "toml": "0.10.2",
  197. "sqlparse": "0.4.1",
  198. "six": "1.15.0",
  199. "shellingham": "1.3.2",
  200. "setuptools": "51.0.0",
  201. "sentry-sdk": "0.19.5",
  202. "secretstorage": "3.3.0",
  203. "requests": "2.25.1",
  204. "requests-toolbelt": "0.9.1",
  205. "regex": "2020.11.13",
  206. "pytz": "2020.5",
  207. "pyparsing": "2.4.7",
  208. "pylev": "1.3.0",
  209. "pygments": "2.7.3",
  210. "pycparser": "2.20",
  211. "ptyprocess": "0.7.0",
  212. "prompt-toolkit": "3.0.3",
  213. "poetry": "1.1.4",
  214. "poetry-core": "1.0.0",
  215. "pkginfo": "1.6.1",
  216. "pip": "20.3.3",
  217. "pickleshare": "0.7.5",
  218. "pexpect": "4.8.0",
  219. "pathspec": "0.8.1",
  220. "pastel": "0.2.1",
  221. "parso": "0.8.1",
  222. "packaging": "20.8",
  223. "msgpack": "1.0.2",
  224. "lockfile": "0.12.2",
  225. "keyring": "21.7.0",
  226. "jeepney": "0.6.0",
  227. "jedi": "0.18.0",
  228. "ipython": "7.16.1",
  229. "ipython-genutils": "0.2.0",
  230. "ipdb": "0.12.3",
  231. "idna": "2.10",
  232. "html5lib": "1.1",
  233. "filelock": "3.0.12",
  234. "django": "3.1.4",
  235. "distlib": "0.3.1",
  236. "decorator": "4.4.2",
  237. "cryptography": "3.3.1",
  238. "crashtest": "0.3.1",
  239. "clikit": "0.6.2",
  240. "click": "7.1.2",
  241. "cleo": "0.8.1",
  242. "chardet": "4.0.0",
  243. "cffi": "1.14.4",
  244. "certifi": "2020.12.5",
  245. "cachy": "0.3.0",
  246. "cachecontrol": "0.12.6",
  247. "black": "19.10b0",
  248. "backcall": "0.2.0",
  249. "attrs": "20.3.0",
  250. "asgiref": "3.3.1",
  251. "appdirs": "1.4.4"
  252. },
  253. "extra": { "sys.argv": ["./manage.py", "runserver", "0.0.0.0:8001"] },
  254. "request": {
  255. "url": "http://localhost:8001/divide-zero/",
  256. "query_string": "",
  257. "method": "GET",
  258. "env": { "SERVER_NAME": "43d6d8bfda6a", "SERVER_PORT": "8001" },
  259. "headers": {
  260. "Content-Length": "",
  261. "Content-Type": "text/plain",
  262. "Host": "localhost:8001",
  263. "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
  264. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
  265. "Accept-Language": "en-US,en;q=0.5",
  266. "Accept-Encoding": "gzip, deflate",
  267. "Referer": "http://localhost:8001/",
  268. "Connection": "keep-alive",
  269. "Cookie": "",
  270. "Upgrade-Insecure-Requests": "1",
  271. "Cache-Control": "max-age=0"
  272. }
  273. },
  274. "server_name": "43d6d8bfda6a",
  275. "sdk": {
  276. "name": "sentry.python",
  277. "version": "0.19.5",
  278. "packages": [{ "name": "pypi:sentry-sdk", "version": "0.19.5" }],
  279. "integrations": [
  280. "argv",
  281. "atexit",
  282. "dedupe",
  283. "django",
  284. "excepthook",
  285. "logging",
  286. "modules",
  287. "stdlib",
  288. "threading"
  289. ]
  290. },
  291. "platform": "python",
  292. "_meta": {
  293. "request": {
  294. "headers": { "Cookie": { "": { "rem": [["!config", "x", 0, 344]] } } }
  295. }
  296. }
  297. }