django_template_error.json 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. {
  2. "eventID": "3e7c1345914d4924926d795ade8240cb",
  3. "dist": null,
  4. "userReport": null,
  5. "projectID": "7",
  6. "previousEventID": null,
  7. "message": "_reverse_with_prefix NoReverseMatch Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name. django/urls/resolvers.py /template-error/",
  8. "id": "2171",
  9. "size": 8801,
  10. "errors": [],
  11. "culprit": "/template-error/",
  12. "title": "NoReverseMatch: Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  13. "platform": "python",
  14. "location": "django/urls/resolvers.py",
  15. "nextEventID": null,
  16. "type": "error",
  17. "metadata": {
  18. "function": "_reverse_with_prefix",
  19. "type": "NoReverseMatch",
  20. "value": "Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  21. "filename": "django/urls/resolvers.py"
  22. },
  23. "groupingConfig": {
  24. "id": "legacy:2019-03-12"
  25. },
  26. "crashFile": null,
  27. "tags": [
  28. {
  29. "value": "Firefox 76.0",
  30. "key": "browser",
  31. "_meta": null
  32. },
  33. {
  34. "value": "Firefox",
  35. "key": "browser.name",
  36. "_meta": null
  37. },
  38. {
  39. "value": "no",
  40. "key": "handled",
  41. "_meta": null
  42. },
  43. {
  44. "value": "error",
  45. "key": "level",
  46. "_meta": null
  47. },
  48. {
  49. "value": "django",
  50. "key": "mechanism",
  51. "_meta": null
  52. },
  53. {
  54. "value": "Ubuntu",
  55. "key": "os.name",
  56. "_meta": null
  57. },
  58. {
  59. "value": "CPython 3.8.2",
  60. "key": "runtime",
  61. "_meta": null
  62. },
  63. {
  64. "value": "CPython",
  65. "key": "runtime.name",
  66. "_meta": null
  67. },
  68. {
  69. "value": "4c55e9e8d666",
  70. "key": "server_name",
  71. "_meta": null
  72. },
  73. {
  74. "value": "/template-error/",
  75. "key": "transaction",
  76. "_meta": null
  77. },
  78. {
  79. "value": "http://localhost:8001/template-error/",
  80. "key": "url",
  81. "_meta": null
  82. }
  83. ],
  84. "dateCreated": "2020-05-13T00:37:49.130Z",
  85. "dateReceived": "2020-05-13T00:41:37.905Z",
  86. "user": null,
  87. "entries": [
  88. {
  89. "type": "exception",
  90. "data": {
  91. "values": [
  92. {
  93. "stacktrace": {
  94. "frames": [
  95. {
  96. "function": "inner",
  97. "colNo": null,
  98. "vars": {
  99. "get_response": "<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>>",
  100. "request": "<WSGIRequest: GET '/template-error/'>",
  101. "exc": "NoReverseMatch(\"Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.\")"
  102. },
  103. "symbol": null,
  104. "module": "django.core.handlers.exception",
  105. "lineNo": 34,
  106. "trust": null,
  107. "errors": null,
  108. "package": null,
  109. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py",
  110. "inApp": false,
  111. "instructionAddr": null,
  112. "filename": "django/core/handlers/exception.py",
  113. "platform": null,
  114. "context": [
  115. [
  116. 29,
  117. " can rely on getting a response instead of an exception."
  118. ],
  119. [
  120. 30,
  121. " \"\"\""
  122. ],
  123. [
  124. 31,
  125. " @wraps(get_response)"
  126. ],
  127. [
  128. 32,
  129. " def inner(request):"
  130. ],
  131. [
  132. 33,
  133. " try:"
  134. ],
  135. [
  136. 34,
  137. " response = get_response(request)"
  138. ],
  139. [
  140. 35,
  141. " except Exception as exc:"
  142. ],
  143. [
  144. 36,
  145. " response = response_for_exception(request, exc)"
  146. ],
  147. [
  148. 37,
  149. " return response"
  150. ],
  151. [
  152. 38,
  153. " return inner"
  154. ],
  155. [
  156. 39,
  157. ""
  158. ]
  159. ],
  160. "symbolAddr": null
  161. },
  162. {
  163. "function": "_get_response",
  164. "colNo": null,
  165. "vars": {
  166. "resolver_match": "ResolverMatch(func=errors.views.TemplateErrorView, args=(), kwargs={}, url_name=template_error, app_names=[], namespaces=[], route=template-error/)",
  167. "callback_args": [],
  168. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7fc14bc8ce50>",
  169. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>",
  170. "request": "<WSGIRequest: GET '/template-error/'>",
  171. "callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  172. "wrapped_callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  173. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  174. "callback_kwargs": {},
  175. "response": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  176. },
  177. "symbol": null,
  178. "module": "django.core.handlers.base",
  179. "lineNo": 145,
  180. "trust": null,
  181. "errors": null,
  182. "package": null,
  183. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  184. "inApp": false,
  185. "instructionAddr": null,
  186. "filename": "django/core/handlers/base.py",
  187. "platform": null,
  188. "context": [
  189. [
  190. 140,
  191. " )"
  192. ],
  193. [
  194. 141,
  195. ""
  196. ],
  197. [
  198. 142,
  199. " try:"
  200. ],
  201. [
  202. 143,
  203. " response = response.render()"
  204. ],
  205. [
  206. 144,
  207. " except Exception as e:"
  208. ],
  209. [
  210. 145,
  211. " response = self.process_exception_by_middleware(e, request)"
  212. ],
  213. [
  214. 146,
  215. ""
  216. ],
  217. [
  218. 147,
  219. " return response"
  220. ],
  221. [
  222. 148,
  223. ""
  224. ],
  225. [
  226. 149,
  227. " def process_exception_by_middleware(self, exception, request):"
  228. ],
  229. [
  230. 150,
  231. " \"\"\""
  232. ]
  233. ],
  234. "symbolAddr": null
  235. },
  236. {
  237. "function": "_get_response",
  238. "colNo": null,
  239. "vars": {
  240. "resolver_match": "ResolverMatch(func=errors.views.TemplateErrorView, args=(), kwargs={}, url_name=template_error, app_names=[], namespaces=[], route=template-error/)",
  241. "callback_args": [],
  242. "middleware_method": "<function CsrfViewMiddleware.process_view at 0x7fc14bc8ce50>",
  243. "self": "<django.core.handlers.wsgi.WSGIHandler object at 0x7fc14cb6efa0>",
  244. "request": "<WSGIRequest: GET '/template-error/'>",
  245. "callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  246. "wrapped_callback": "<function TemplateErrorView at 0x7fc14c63f940>",
  247. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  248. "callback_kwargs": {},
  249. "response": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  250. },
  251. "symbol": null,
  252. "module": "django.core.handlers.base",
  253. "lineNo": 143,
  254. "trust": null,
  255. "errors": null,
  256. "package": null,
  257. "absPath": "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py",
  258. "inApp": false,
  259. "instructionAddr": null,
  260. "filename": "django/core/handlers/base.py",
  261. "platform": null,
  262. "context": [
  263. [
  264. 138,
  265. " \"HttpResponse object. It returned None instead.\""
  266. ],
  267. [
  268. 139,
  269. " % (middleware_method.__self__.__class__.__name__)"
  270. ],
  271. [
  272. 140,
  273. " )"
  274. ],
  275. [
  276. 141,
  277. ""
  278. ],
  279. [
  280. 142,
  281. " try:"
  282. ],
  283. [
  284. 143,
  285. " response = response.render()"
  286. ],
  287. [
  288. 144,
  289. " except Exception as e:"
  290. ],
  291. [
  292. 145,
  293. " response = self.process_exception_by_middleware(e, request)"
  294. ],
  295. [
  296. 146,
  297. ""
  298. ],
  299. [
  300. 147,
  301. " return response"
  302. ],
  303. [
  304. 148,
  305. ""
  306. ]
  307. ],
  308. "symbolAddr": null
  309. },
  310. {
  311. "function": "render",
  312. "colNo": null,
  313. "vars": {
  314. "self": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">",
  315. "retval": "<TemplateResponse status_code=200, \"text/html; charset=utf-8\">"
  316. },
  317. "symbol": null,
  318. "module": "django.template.response",
  319. "lineNo": 105,
  320. "trust": null,
  321. "errors": null,
  322. "package": null,
  323. "absPath": "/usr/local/lib/python3.8/site-packages/django/template/response.py",
  324. "inApp": false,
  325. "instructionAddr": null,
  326. "filename": "django/template/response.py",
  327. "platform": null,
  328. "context": [
  329. [
  330. 100,
  331. ""
  332. ],
  333. [
  334. 101,
  335. " Return the baked response instance."
  336. ],
  337. [
  338. 102,
  339. " \"\"\""
  340. ],
  341. [
  342. 103,
  343. " retval = self"
  344. ],
  345. [
  346. 104,
  347. " if not self._is_rendered:"
  348. ],
  349. [
  350. 105,
  351. " self.content = self.rendered_content"
  352. ],
  353. [
  354. 106,
  355. " for post_callback in self._post_render_callbacks:"
  356. ],
  357. [
  358. 107,
  359. " newretval = post_callback(retval)"
  360. ],
  361. [
  362. 108,
  363. " if newretval is not None:"
  364. ],
  365. [
  366. 109,
  367. " retval = newretval"
  368. ],
  369. [
  370. 110,
  371. " return retval"
  372. ]
  373. ],
  374. "symbolAddr": null
  375. },
  376. {
  377. "function": "reverse",
  378. "colNo": null,
  379. "vars": {
  380. "current_path": "None",
  381. "viewname": "'nope'",
  382. "args": [],
  383. "current_app": "''",
  384. "prefix": "'/'",
  385. "resolver": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  386. "kwargs": {},
  387. "path": [],
  388. "urlconf": "'django_error_factory.urls'",
  389. "view": "'nope'"
  390. },
  391. "symbol": null,
  392. "module": "django.urls.base",
  393. "lineNo": 87,
  394. "trust": null,
  395. "errors": null,
  396. "package": null,
  397. "absPath": "/usr/local/lib/python3.8/site-packages/django/urls/base.py",
  398. "inApp": false,
  399. "instructionAddr": null,
  400. "filename": "django/urls/base.py",
  401. "platform": null,
  402. "context": [
  403. [
  404. 82,
  405. " else:"
  406. ],
  407. [
  408. 83,
  409. " raise NoReverseMatch(\"%s is not a registered namespace\" % key)"
  410. ],
  411. [
  412. 84,
  413. " if ns_pattern:"
  414. ],
  415. [
  416. 85,
  417. " resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))"
  418. ],
  419. [
  420. 86,
  421. ""
  422. ],
  423. [
  424. 87,
  425. " return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))"
  426. ],
  427. [
  428. 88,
  429. ""
  430. ],
  431. [
  432. 89,
  433. ""
  434. ],
  435. [
  436. 90,
  437. "reverse_lazy = lazy(reverse, str)"
  438. ],
  439. [
  440. 91,
  441. ""
  442. ],
  443. [
  444. 92,
  445. ""
  446. ]
  447. ],
  448. "symbolAddr": null
  449. },
  450. {
  451. "function": "_reverse_with_prefix",
  452. "colNo": null,
  453. "vars": {
  454. "lookup_view": "'nope'",
  455. "m": "None",
  456. "self": "<URLResolver 'django_error_factory.urls' (None:None) '^/'>",
  457. "args": [],
  458. "_prefix": "'/'",
  459. "lookup_view_s": "'nope'",
  460. "n": "None",
  461. "possibilities": [],
  462. "patterns": [],
  463. "msg": "\"Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.\""
  464. },
  465. "symbol": null,
  466. "module": "django.urls.resolvers",
  467. "lineNo": 677,
  468. "trust": null,
  469. "errors": null,
  470. "package": null,
  471. "absPath": "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py",
  472. "inApp": false,
  473. "instructionAddr": null,
  474. "filename": "django/urls/resolvers.py",
  475. "platform": null,
  476. "context": [
  477. [
  478. 672,
  479. " else:"
  480. ],
  481. [
  482. 673,
  483. " msg = ("
  484. ],
  485. [
  486. 674,
  487. " \"Reverse for '%(view)s' not found. '%(view)s' is not \""
  488. ],
  489. [
  490. 675,
  491. " \"a valid view function or pattern name.\" % {'view': lookup_view_s}"
  492. ],
  493. [
  494. 676,
  495. " )"
  496. ],
  497. [
  498. 677,
  499. " raise NoReverseMatch(msg)"
  500. ]
  501. ],
  502. "symbolAddr": null
  503. }
  504. ],
  505. "framesOmitted": null,
  506. "registers": null,
  507. "hasSystemFrames": false
  508. },
  509. "module": "django.urls.exceptions",
  510. "rawStacktrace": null,
  511. "mechanism": {
  512. "type": "django",
  513. "handled": false
  514. },
  515. "threadId": null,
  516. "value": "Reverse for 'nope' not found. 'nope' is not a valid view function or pattern name.",
  517. "type": "NoReverseMatch"
  518. }
  519. ],
  520. "excOmitted": null,
  521. "hasSystemFrames": false
  522. }
  523. },
  524. {
  525. "type": "request",
  526. "data": {
  527. "fragment": "",
  528. "cookies": [],
  529. "inferredContentType": "text/plain",
  530. "env": {
  531. "SERVER_NAME": "4c55e9e8d666",
  532. "SERVER_PORT": "8001"
  533. },
  534. "headers": [
  535. [
  536. "Accept",
  537. "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  538. ],
  539. [
  540. "Accept-Encoding",
  541. "gzip, deflate"
  542. ],
  543. [
  544. "Accept-Language",
  545. "en-US,en;q=0.5"
  546. ],
  547. [
  548. "Connection",
  549. "keep-alive"
  550. ],
  551. [
  552. "Content-Length",
  553. ""
  554. ],
  555. [
  556. "Content-Type",
  557. "text/plain"
  558. ],
  559. [
  560. "Dnt",
  561. "1"
  562. ],
  563. [
  564. "Host",
  565. "localhost:8001"
  566. ],
  567. [
  568. "Referer",
  569. "http://localhost:8001/"
  570. ],
  571. [
  572. "Upgrade-Insecure-Requests",
  573. "1"
  574. ],
  575. [
  576. "User-Agent",
  577. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
  578. ]
  579. ],
  580. "url": "http://localhost:8001/template-error/",
  581. "query": [],
  582. "data": null,
  583. "method": "GET"
  584. }
  585. }
  586. ],
  587. "packages": {
  588. "webencodings": "0.5.1",
  589. "wheel": "0.34.2",
  590. "asgiref": "3.2.7",
  591. "attrs": "19.3.0",
  592. "appdirs": "1.4.3"
  593. },
  594. "sdk": {
  595. "version": "0.14.3",
  596. "name": "sentry.python",
  597. "upstream": {
  598. "url": null,
  599. "isNewer": false,
  600. "name": "sentry.python"
  601. }
  602. },
  603. "_meta": {
  604. "user": null,
  605. "context": null,
  606. "entries": {},
  607. "contexts": null,
  608. "message": null,
  609. "packages": null,
  610. "tags": {},
  611. "sdk": null
  612. },
  613. "contexts": {
  614. "runtime": {
  615. "version": "3.8.2",
  616. "type": "runtime",
  617. "build": "3.8.2 (default, Apr 23 2020, 14:32:57) \n[GCC 8.3.0]",
  618. "name": "CPython"
  619. },
  620. "os": {
  621. "type": "os",
  622. "name": "Ubuntu"
  623. },
  624. "trace": {
  625. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  626. "parent_span_id": "be0f515132150c50",
  627. "trace_id": "7f6b76eac5d042b78752db640a848008",
  628. "span_id": "802ffce6fe075f40",
  629. "type": "default",
  630. "op": "django.middleware"
  631. },
  632. "browser": {
  633. "version": "76.0",
  634. "type": "browser",
  635. "name": "Firefox"
  636. }
  637. },
  638. "fingerprints": [
  639. "f5f84fe90def35006ba620e9ca39ef31"
  640. ],
  641. "context": {
  642. "sys.argv": [
  643. "./manage.py",
  644. "runserver",
  645. "0.0.0.0:8001"
  646. ]
  647. },
  648. "release": null,
  649. "groupID": "72"
  650. }