js_error_factory.py 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. throw_error = {
  2. "exception": {
  3. "values": [
  4. {
  5. "type": "Error",
  6. "value": "an error string",
  7. "stacktrace": {
  8. "frames": [
  9. {
  10. "colno": 27,
  11. "filename": "http://localhost:4200/polyfills.js",
  12. "function": "globalZoneAwareCallback",
  13. "in_app": True,
  14. "lineno": 4864,
  15. },
  16. {
  17. "colno": 14,
  18. "filename": "http://localhost:4200/polyfills.js",
  19. "function": "invokeTask",
  20. "in_app": True,
  21. "lineno": 4838,
  22. },
  23. {
  24. "colno": 34,
  25. "filename": "http://localhost:4200/polyfills.js",
  26. "function": "invokeTask",
  27. "in_app": True,
  28. "lineno": 3700,
  29. },
  30. {
  31. "colno": 47,
  32. "filename": "http://localhost:4200/polyfills.js",
  33. "function": "runTask",
  34. "in_app": True,
  35. "lineno": 3403,
  36. },
  37. {
  38. "colno": 60,
  39. "filename": "http://localhost:4200/polyfills.js",
  40. "function": "invokeTask",
  41. "in_app": True,
  42. "lineno": 3625,
  43. },
  44. {
  45. "colno": 33,
  46. "filename": "http://localhost:4200/vendor.js",
  47. "function": "onInvokeTask",
  48. "in_app": True,
  49. "lineno": 70625,
  50. },
  51. {
  52. "colno": 31,
  53. "filename": "http://localhost:4200/polyfills.js",
  54. "function": "invokeTask",
  55. "in_app": True,
  56. "lineno": 3626,
  57. },
  58. {
  59. "colno": 23,
  60. "filename": "http://localhost:4200/vendor.js",
  61. "function": "sentryWrapped",
  62. "in_app": True,
  63. "lineno": 81826,
  64. },
  65. {
  66. "colno": 50,
  67. "filename": "http://localhost:4200/vendor.js",
  68. "function": "decoratePreventDefault/<",
  69. "in_app": True,
  70. "lineno": 79300,
  71. },
  72. {
  73. "colno": 29,
  74. "filename": "http://localhost:4200/vendor.js",
  75. "function": "renderEventHandlerClosure/<",
  76. "in_app": True,
  77. "lineno": 73554,
  78. },
  79. {
  80. "colno": 25,
  81. "filename": "http://localhost:4200/vendor.js",
  82. "function": "dispatchEvent",
  83. "in_app": True,
  84. "lineno": 61709,
  85. },
  86. {
  87. "colno": 12,
  88. "filename": "http://localhost:4200/vendor.js",
  89. "function": "debugHandleEvent",
  90. "in_app": True,
  91. "lineno": 75876,
  92. },
  93. {
  94. "colno": 15,
  95. "filename": "http://localhost:4200/vendor.js",
  96. "function": "callWithDebugContext",
  97. "in_app": True,
  98. "lineno": 76251,
  99. },
  100. {
  101. "colno": 15,
  102. "filename": "http://localhost:4200/vendor.js",
  103. "function": "viewWrappedDebugError",
  104. "in_app": True,
  105. "lineno": 61054,
  106. },
  107. ]
  108. },
  109. "mechanism": {"handled": True, "type": "generic"},
  110. }
  111. ]
  112. },
  113. "level": "error",
  114. "event_id": "3a4fe46760d04d0c9eeb4f2be32d2ba2",
  115. "platform": "javascript",
  116. "sdk": {
  117. "name": "sentry.javascript.browser",
  118. "packages": [{"name": "npm:@sentry/browser", "version": "5.11.0"}],
  119. "version": "5.11.0",
  120. "integrations": [
  121. "InboundFilters",
  122. "FunctionToString",
  123. "TryCatch",
  124. "Breadcrumbs",
  125. "GlobalHandlers",
  126. "LinkedErrors",
  127. "UserAgent",
  128. ],
  129. },
  130. "breadcrumbs": [
  131. {
  132. "timestamp": 1578861859.377,
  133. "category": "console",
  134. "data": {
  135. "extra": {
  136. "arguments": [
  137. "Angular is running in the development mode. Call enableProdMode() to enable the production mode."
  138. ]
  139. },
  140. "logger": "console",
  141. },
  142. "level": "log",
  143. "message": "Angular is running in the development mode. Call enableProdMode() to enable the production mode.",
  144. },
  145. {
  146. "timestamp": 1578861859.415,
  147. "category": "ui.click",
  148. "message": "body > app-root > ol > li > a",
  149. },
  150. {
  151. "timestamp": 1578861859.529,
  152. "category": "xhr",
  153. "data": {
  154. "method": "GET",
  155. "url": "http://localhost:4200/sockjs-node/info?t=1578861859416",
  156. "status_code": 200,
  157. },
  158. "type": "http",
  159. },
  160. {
  161. "timestamp": 1578861860.967,
  162. "category": "ui.click",
  163. "message": "body > app-root > ol > li > a",
  164. },
  165. {
  166. "timestamp": 1578861861.053,
  167. "category": "sentry",
  168. "event_id": "953c99e1547f4f6bbcb119dc44cc7d34",
  169. "level": "error",
  170. "message": "Error: an error string",
  171. },
  172. {
  173. "timestamp": 1578861861.071,
  174. "category": "sentry",
  175. "event_id": "1b480b60cbf840ad9a87c6c8d32eaca4",
  176. "level": "error",
  177. "message": "Error: an error string",
  178. },
  179. {
  180. "timestamp": 1578861861.072,
  181. "category": "sentry",
  182. "event_id": "21ea06f91e1b429b8a6e021be50c7104",
  183. "level": "error",
  184. "message": "Error: an error string",
  185. },
  186. {
  187. "timestamp": 1578861861.075,
  188. "category": "sentry",
  189. "event_id": "7de9ecf53d7f480c86a857acdd328f3c",
  190. "level": "error",
  191. "message": "Error: an error string",
  192. },
  193. {
  194. "timestamp": 1578862058.96,
  195. "category": "ui.click",
  196. "message": "body > app-root > ol > li > a",
  197. },
  198. {
  199. "timestamp": 1578862059.054,
  200. "category": "sentry",
  201. "event_id": "15f869407e7049d391a74bc26b98fb0e",
  202. "level": "error",
  203. "message": "Error: an error string",
  204. },
  205. {
  206. "timestamp": 1578862059.176,
  207. "category": "sentry",
  208. "event_id": "eb0ae9354bdb4ecd90614de54495549b",
  209. "level": "error",
  210. "message": "Error: an error string",
  211. },
  212. {
  213. "timestamp": 1578862349.058,
  214. "category": "ui.click",
  215. "message": "body > app-root > ol > li > a",
  216. },
  217. {
  218. "timestamp": 1578862349.163,
  219. "category": "sentry",
  220. "event_id": "ff7ff13b69ee46789121fd071e8bfe70",
  221. "level": "error",
  222. "message": "Error: an error string",
  223. },
  224. {
  225. "timestamp": 1578862349.226,
  226. "category": "sentry",
  227. "event_id": "fa8e4ca917864dd7980fc1dd020783de",
  228. "level": "error",
  229. "message": "Error: an error string",
  230. },
  231. {
  232. "timestamp": 1578862369.686,
  233. "category": "ui.click",
  234. "message": "body > app-root > ol > li > a",
  235. },
  236. {
  237. "timestamp": 1578862369.811,
  238. "category": "sentry",
  239. "event_id": "2cec68bc7a484f64980987fb53471a8c",
  240. "level": "error",
  241. "message": "Error: an error string",
  242. },
  243. {
  244. "timestamp": 1578862369.812,
  245. "category": "sentry",
  246. "event_id": "72ccc32c539e407fa4fab5737df31dbf",
  247. "level": "error",
  248. "message": "Error: an error string",
  249. },
  250. {
  251. "timestamp": 1578862392.876,
  252. "category": "ui.click",
  253. "message": "body > app-root > ol > li > a",
  254. },
  255. {
  256. "timestamp": 1578862393.05,
  257. "category": "sentry",
  258. "event_id": "abed54c077f24206aec40a04f4a838a6",
  259. "level": "error",
  260. "message": "Error: an error string",
  261. },
  262. {
  263. "timestamp": 1578862393.053,
  264. "category": "sentry",
  265. "event_id": "abf87281aee443fca8169590ba6389bb",
  266. "level": "error",
  267. "message": "Error: an error string",
  268. },
  269. {
  270. "timestamp": 1578862442.414,
  271. "category": "ui.click",
  272. "message": "body > app-root > ol > li > a",
  273. },
  274. {
  275. "timestamp": 1578862442.473,
  276. "category": "sentry",
  277. "event_id": "589f50e20cec479fac95415dbe021cb7",
  278. "level": "error",
  279. "message": "Error: an error string",
  280. },
  281. {
  282. "timestamp": 1578862442.522,
  283. "category": "sentry",
  284. "event_id": "8d48047f80c645868a90f72e0c3f6487",
  285. "level": "error",
  286. "message": "Error: an error string",
  287. },
  288. {
  289. "timestamp": 1578862473.404,
  290. "category": "ui.click",
  291. "message": "body > app-root > ol > li > a",
  292. },
  293. {
  294. "timestamp": 1578862473.554,
  295. "category": "sentry",
  296. "event_id": "ee14e02ac9754f79b827505548d36c47",
  297. "level": "error",
  298. "message": "Error: an error string",
  299. },
  300. {
  301. "timestamp": 1578862473.556,
  302. "category": "sentry",
  303. "event_id": "12d83a79d84b40f1a2df863d1af657d1",
  304. "level": "error",
  305. "message": "Error: an error string",
  306. },
  307. {
  308. "timestamp": 1578862870.517,
  309. "category": "ui.click",
  310. "message": "body > app-root > ol > li > a",
  311. },
  312. {
  313. "timestamp": 1578862870.698,
  314. "category": "sentry",
  315. "event_id": "692223e6f4384e60b53bb19d0adde8b9",
  316. "level": "error",
  317. "message": "Error: an error string",
  318. },
  319. {
  320. "timestamp": 1578862870.706,
  321. "category": "sentry",
  322. "event_id": "a7de5cc48c2544d89e43f2795e0e5457",
  323. "level": "error",
  324. "message": "Error: an error string",
  325. },
  326. {
  327. "timestamp": 1578862876.059,
  328. "category": "ui.click",
  329. "message": "body > app-root > ol > li > a",
  330. },
  331. {
  332. "timestamp": 1578862876.202,
  333. "category": "sentry",
  334. "event_id": "aa64fb0f82254c0b8982a21b948bf2d8",
  335. "level": "error",
  336. "message": "Error: an error string",
  337. },
  338. {
  339. "timestamp": 1578862876.204,
  340. "category": "sentry",
  341. "event_id": "7e590f61436447aebf2b7176023bab19",
  342. "level": "error",
  343. "message": "Error: an error string",
  344. },
  345. ],
  346. "request": {
  347. "url": "http://localhost:4200/",
  348. "headers": {
  349. "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0"
  350. },
  351. },
  352. }