django_template_error.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. {
  2. "event_id": "3e7c1345914d4924926d795ade8240cb",
  3. "project": 7,
  4. "release": null,
  5. "dist": null,
  6. "platform": "python",
  7. "message": "",
  8. "datetime": "2020-05-13T00:37:49.130000Z",
  9. "time_spent": null,
  10. "tags": [
  11. [
  12. "browser",
  13. "Firefox 76.0"
  14. ],
  15. [
  16. "browser.name",
  17. "Firefox"
  18. ],
  19. [
  20. "handled",
  21. "no"
  22. ],
  23. [
  24. "level",
  25. "error"
  26. ],
  27. [
  28. "mechanism",
  29. "django"
  30. ],
  31. [
  32. "os.name",
  33. "Ubuntu"
  34. ],
  35. [
  36. "runtime",
  37. "CPython 3.8.2"
  38. ],
  39. [
  40. "runtime.name",
  41. "CPython"
  42. ],
  43. [
  44. "server_name",
  45. "4c55e9e8d666"
  46. ],
  47. [
  48. "transaction",
  49. "/template-error/"
  50. ],
  51. [
  52. "url",
  53. "http://localhost:8001/template-error/"
  54. ]
  55. ],
  56. "contexts": {
  57. "runtime": {
  58. "version": "3.8.2",
  59. "type": "runtime",
  60. "name": "CPython",
  61. "build": "3.8.2 (default, Apr 23 2020, 14:32:57) \n[GCC 8.3.0]"
  62. },
  63. "os": {
  64. "version": null,
  65. "name": "Ubuntu"
  66. },
  67. "trace": {
  68. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  69. "parent_span_id": "be0f515132150c50",
  70. "trace_id": "7f6b76eac5d042b78752db640a848008",
  71. "op": "django.middleware",
  72. "type": "trace",
  73. "span_id": "802ffce6fe075f40"
  74. },
  75. "browser": {
  76. "version": "76.0",
  77. "name": "Firefox"
  78. }
  79. },
  80. "culprit": "/template-error/",
  81. "exception": {
  82. "values": [
  83. {
  84. "stacktrace": {
  85. "frames": [
  86. {
  87. "function": "inner",
  88. "abs_path": "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py",
  89. "pre_context": [
  90. " can rely on getting a response instead of an exception.",
  91. " \"\"\"",
  92. " @wraps(get_response)",
  93. " def inner(request):",
  94. " try:"
  95. ],
  96. "vars": {
  97. "get_response": "<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>>",
  98. "request": "<WSGIRequest: GET '/template-error/'>",
  99. "exc": "NoReverseMatch(\"Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.\")"
  100. },
  101. "module": "django.core.handlers.exception",
  102. "filename": "django/core/handlers/exception.py",
  103. "post_context": [
  104. " except Exception as exc:",
  105. " response = response_for_exception(request, exc)",
  106. " return response",
  107. " return inner",
  108. ""
  109. ],
  110. "in_app": false,
  111. "context_line": " response = get_response(request)",
  112. "lineno": 34
  113. },
  114. {
  115. "function": "_get_response",
  116. "abs_path": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  117. "pre_context": [
  118. " )",
  119. "",
  120. " try:",
  121. " response = response.render()",
  122. " except Exception as e:"
  123. ],
  124. "vars": {
  125. "resolver_match": "ResolverMatch(func=errors.views.TemplateErrorView, args=(), kwargs={}, url_name=template_error, app_names=[], namespaces=[], route=template-error/)",
  126. "callback_args": [],
  127. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7fc14bc8ce50>",
  128. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>",
  129. "request": "<WSGIRequest: GET '/template-error/'>",
  130. "callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  131. "wrapped_callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  132. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  133. "callback_kwargs": {},
  134. "response": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  135. },
  136. "module": "django.core.handlers.base",
  137. "filename": "django/core/handlers/base.py",
  138. "post_context": [
  139. "",
  140. " return response",
  141. "",
  142. " def process_exception_by_middleware(self, exception, request):",
  143. " \"\"\""
  144. ],
  145. "in_app": false,
  146. "context_line": " response = self.process_exception_by_middleware(e, request)",
  147. "lineno": 145
  148. },
  149. {
  150. "function": "_get_response",
  151. "abs_path": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  152. "pre_context": [
  153. " \"HttpResponse object. It returned None instead.\"",
  154. " % (middleware_method.__self__.__class__.__name__)",
  155. " )",
  156. "",
  157. " try:"
  158. ],
  159. "vars": {
  160. "resolver_match": "ResolverMatch(func=errors.views.TemplateErrorView, args=(), kwargs={}, url_name=template_error, app_names=[], namespaces=[], route=template-error/)",
  161. "callback_args": [],
  162. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7fc14bc8ce50>",
  163. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>",
  164. "request": "<WSGIRequest: GET '/template-error/'>",
  165. "callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  166. "wrapped_callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  167. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  168. "callback_kwargs": {},
  169. "response": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  170. },
  171. "module": "django.core.handlers.base",
  172. "filename": "django/core/handlers/base.py",
  173. "post_context": [
  174. " except Exception as e:",
  175. " response = self.process_exception_by_middleware(e, request)",
  176. "",
  177. " return response",
  178. ""
  179. ],
  180. "in_app": false,
  181. "context_line": " response = response.render()",
  182. "lineno": 143
  183. },
  184. {
  185. "function": "render",
  186. "abs_path": "/usr/local/lib/python3.8/site-packages/django/template/response.py",
  187. "pre_context": [
  188. "",
  189. " Return the baked response instance.",
  190. " \"\"\"",
  191. " retval = self",
  192. " if not self._is_rendered:"
  193. ],
  194. "vars": {
  195. "self": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">",
  196. "retval": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  197. },
  198. "module": "django.template.response",
  199. "filename": "django/template/response.py",
  200. "post_context": [
  201. " for post_callback in self._post_render_callbacks:",
  202. " newretval = post_callback(retval)",
  203. " if newretval is not None:",
  204. " retval = newretval",
  205. " return retval"
  206. ],
  207. "in_app": false,
  208. "context_line": " self.content = self.rendered_content",
  209. "lineno": 105
  210. },
  211. {
  212. "function": "reverse",
  213. "abs_path": "/usr/local/lib/python3.8/site-packages/django/urls/base.py",
  214. "pre_context": [
  215. " else:",
  216. " raise NoReverseMatch(\"%s is not a registered namespace\" % key)",
  217. " if ns_pattern:",
  218. " resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))",
  219. ""
  220. ],
  221. "vars": {
  222. "current_path": "None",
  223. "viewname": "'nope'",
  224. "args": [],
  225. "current_app": "''",
  226. "prefix": "'/'",
  227. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  228. "kwargs": {},
  229. "path": [],
  230. "urlconf": "'django_error_factory.urls'",
  231. "view": "'nope'"
  232. },
  233. "module": "django.urls.base",
  234. "filename": "django/urls/base.py",
  235. "post_context": [
  236. "",
  237. "",
  238. "reverse_lazy = lazy(reverse, str)",
  239. "",
  240. ""
  241. ],
  242. "in_app": false,
  243. "context_line": " return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))",
  244. "lineno": 87
  245. },
  246. {
  247. "function": "_reverse_with_prefix",
  248. "abs_path": "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py",
  249. "pre_context": [
  250. " else:",
  251. " msg = (",
  252. " \"Reverse for '%(view)s' not found. '%(view)s' is not \"",
  253. " \"a valid view function or pattern name.\" % {'view': lookup_view_s}",
  254. " )"
  255. ],
  256. "vars": {
  257. "lookup_view": "'nope'",
  258. "m": "None",
  259. "self": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  260. "args": [],
  261. "_prefix": "'/'",
  262. "lookup_view_s": "'nope'",
  263. "n": "None",
  264. "possibilities": [],
  265. "patterns": [],
  266. "msg": "\"Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.\""
  267. },
  268. "module": "django.urls.resolvers",
  269. "filename": "django/urls/resolvers.py",
  270. "lineno": 677,
  271. "in_app": false,
  272. "context_line": " raise NoReverseMatch(msg)"
  273. }
  274. ]
  275. },
  276. "type": "NoReverseMatch",
  277. "module": "django.urls.exceptions",
  278. "value": "Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  279. "mechanism": {
  280. "type": "django",
  281. "handled": false
  282. }
  283. }
  284. ]
  285. },
  286. "extra": {
  287. "sys.argv": [
  288. "./manage.py",
  289. "runserver",
  290. "0.0.0.0:8001"
  291. ]
  292. },
  293. "fingerprint": [
  294. "{{ default }}"
  295. ],
  296. "grouping_config": {
  297. "id": "legacy:2019-03-12"
  298. },
  299. "hashes": [
  300. "f5f84fe90def35006ba620e9ca39ef31"
  301. ],
  302. "key_id": "7",
  303. "level": "error",
  304. "location": "django/urls/resolvers.py",
  305. "logger": "",
  306. "metadata": {
  307. "function": "_reverse_with_prefix",
  308. "type": "NoReverseMatch",
  309. "value": "Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  310. "filename": "django/urls/resolvers.py"
  311. },
  312. "modules": {
  313. "webencodings": "0.5.1",
  314. "wheel": "0.34.2",
  315. "asgiref": "3.2.7",
  316. "attrs": "19.3.0",
  317. "appdirs": "1.4.3"
  318. },
  319. "received": 1589330497.905,
  320. "request": {
  321. "url": "http://localhost:8001/template-error/",
  322. "headers": [
  323. [
  324. "Accept",
  325. "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  326. ],
  327. [
  328. "Accept-Encoding",
  329. "gzip, deflate"
  330. ],
  331. [
  332. "Accept-Language",
  333. "en-US,en;q=0.5"
  334. ],
  335. [
  336. "Connection",
  337. "keep-alive"
  338. ],
  339. [
  340. "Content-Length",
  341. ""
  342. ],
  343. [
  344. "Content-Type",
  345. "text/plain"
  346. ],
  347. [
  348. "Dnt",
  349. "1"
  350. ],
  351. [
  352. "Host",
  353. "localhost:8001"
  354. ],
  355. [
  356. "Referer",
  357. "http://localhost:8001/"
  358. ],
  359. [
  360. "Upgrade-Insecure-Requests",
  361. "1"
  362. ],
  363. [
  364. "User-Agent",
  365. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
  366. ]
  367. ],
  368. "method": "GET",
  369. "env": {
  370. "SERVER_NAME": "4c55e9e8d666",
  371. "SERVER_PORT": "8001"
  372. },
  373. "inferred_content_type": "text/plain"
  374. },
  375. "sdk": {
  376. "version": "0.14.3",
  377. "name": "sentry.python",
  378. "packages": [
  379. {
  380. "version": "0.14.3",
  381. "name": "pypi:sentry-sdk"
  382. }
  383. ],
  384. "integrations": [
  385. "argv",
  386. "atexit",
  387. "dedupe",
  388. "django",
  389. "excepthook",
  390. "logging",
  391. "modules",
  392. "stdlib",
  393. "threading"
  394. ]
  395. },
  396. "timestamp": 1589330269.13,
  397. "title": "NoReverseMatch: Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  398. "transaction": "/template-error/",
  399. "type": "error",
  400. "use_rust_normalize": true,
  401. "version": "7"
  402. }