Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.34 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta charset="utf-8" />
  6. <title>Internal Server Error</title>
  7. <style>
  8. body {
  9. font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
  10. font-size: .813em;
  11. color: #222;
  12. background-color: #fff;
  13. }
  14.  
  15.  
  16. code {
  17. font-family: Consolas, "Courier New", courier, monospace;
  18. }
  19.  
  20. body .titleerror {
  21. padding: 3px 3px 6px 3px;
  22. display: block;
  23. font-size: 1.5em;
  24. font-weight: 100;
  25. }
  26.  
  27. body .location {
  28. margin: 3px 0 10px 30px;
  29. }
  30.  
  31. #header {
  32. font-size: 18px;
  33. padding: 15px 0;
  34. border-top: 1px #ddd solid;
  35. border-bottom: 1px #ddd solid;
  36. margin-bottom: 0;
  37. }
  38.  
  39. #header li {
  40. display: inline;
  41. margin: 5px;
  42. padding: 5px;
  43. color: #a0a0a0;
  44. cursor: pointer;
  45. }
  46.  
  47. #header .selected {
  48. background: #44c5f2;
  49. color: #fff;
  50. }
  51.  
  52. #stackpage ul {
  53. list-style: none;
  54. padding-left: 0;
  55. margin: 0;
  56. /*border-bottom: 1px #ddd solid;*/
  57. }
  58.  
  59. #stackpage .details {
  60. font-size: 1.2em;
  61. padding: 3px;
  62. color: #000;
  63. }
  64.  
  65. #stackpage .stackerror {
  66. padding: 5px;
  67. border-bottom: 1px #ddd solid;
  68. }
  69.  
  70.  
  71. #stackpage .frame {
  72. padding: 0;
  73. margin: 0 0 0 30px;
  74. }
  75.  
  76. #stackpage .frame h3 {
  77. padding: 2px;
  78. margin: 0;
  79. }
  80.  
  81. #stackpage .source {
  82. padding: 0 0 0 30px;
  83. }
  84.  
  85. #stackpage .source ol li {
  86. font-family: Consolas, "Courier New", courier, monospace;
  87. white-space: pre;
  88. background-color: #fbfbfb;
  89. }
  90.  
  91. #stackpage .frame .source .highlight li span {
  92. color: #FF0000;
  93. }
  94.  
  95. #stackpage .source ol.collapsible li {
  96. color: #888;
  97. }
  98.  
  99. #stackpage .source ol.collapsible li span {
  100. color: #606060;
  101. }
  102.  
  103. .page table {
  104. border-collapse: separate;
  105. border-spacing: 0;
  106. margin: 0 0 20px;
  107. }
  108.  
  109. .page th {
  110. vertical-align: bottom;
  111. padding: 10px 5px 5px 5px;
  112. font-weight: 400;
  113. color: #a0a0a0;
  114. text-align: left;
  115. }
  116.  
  117. .page td {
  118. padding: 3px 10px;
  119. }
  120.  
  121. .page th, .page td {
  122. border-right: 1px #ddd solid;
  123. border-bottom: 1px #ddd solid;
  124. border-left: 1px transparent solid;
  125. border-top: 1px transparent solid;
  126. box-sizing: border-box;
  127. }
  128.  
  129. .page th:last-child, .page td:last-child {
  130. border-right: 1px transparent solid;
  131. }
  132.  
  133. .page .length {
  134. text-align: right;
  135. }
  136.  
  137. a {
  138. color: #1ba1e2;
  139. text-decoration: none;
  140. }
  141.  
  142. a:hover {
  143. color: #13709e;
  144. text-decoration: underline;
  145. }
  146.  
  147. .showRawException {
  148. cursor: pointer;
  149. color: #44c5f2;
  150. background-color: transparent;
  151. font-size: 1.2em;
  152. text-align: left;
  153. text-decoration: none;
  154. display: inline-block;
  155. border: 0;
  156. padding: 0;
  157. }
  158.  
  159. .rawExceptionStackTrace {
  160. font-size: 1.2em;
  161. }
  162.  
  163. .rawExceptionBlock {
  164. border-top: 1px #ddd solid;
  165. border-bottom: 1px #ddd solid;
  166. }
  167.  
  168. .showRawExceptionContainer {
  169. margin-top: 10px;
  170. margin-bottom: 10px;
  171. }
  172.  
  173. .expandCollapseButton {
  174. cursor: pointer;
  175. float: left;
  176. height: 16px;
  177. width: 16px;
  178. font-size: 10px;
  179. position: absolute;
  180. left: 10px;
  181. background-color: #eee;
  182. padding: 0;
  183. border: 0;
  184. margin: 0;
  185. }
  186.  
  187. </style>
  188. </head>
  189. <body>
  190. <h1>An unhandled exception occurred while processing the request.</h1>
  191. <div class="titleerror">FormatException: Input string was not in a correct format.</div>
  192. <p class="location">System.Number.StringToNumber(ReadOnlySpan&lt;char&gt; str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, bool parseDecimal)</p>
  193. <ul id="header">
  194. <li id="stack" tabindex="1" class="selected">
  195. Stack
  196. </li>
  197. <li id="query" tabindex="2">
  198. Query
  199. </li>
  200. <li id="cookies" tabindex="3">
  201. Cookies
  202. </li>
  203. <li id="headers" tabindex="4">
  204. Headers
  205. </li>
  206. </ul>
  207. <div id="stackpage" class="page">
  208. <ul>
  209. <li>
  210. <h2 class="stackerror">FormatException: Input string was not in a correct format.</h2>
  211. <ul>
  212. <li class="frame" id="frame1">
  213. <h3>System.Number.StringToNumber(ReadOnlySpan&lt;char&gt; str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, bool parseDecimal)</h3>
  214. </li>
  215. <li class="frame" id="frame2">
  216. <h3>System.Number.ParseInt32(ReadOnlySpan&lt;char&gt; s, NumberStyles style, NumberFormatInfo info)</h3>
  217. </li>
  218. <li class="frame" id="frame3">
  219. <h3>int.Parse(string s)</h3>
  220. </li>
  221. <li class="frame" id="frame4">
  222. <h3>ParkBuddies.Startup&#x2B;&lt;&gt;c.&lt;ConfigureServices&gt;b__4_5(TokenValidatedContext context) in
  223. <code title="C:\Users\User\Desktop\ParkBuddies\ParkBuddies\Startup.cs">Startup.cs</code>
  224. </h3>
  225. <button class="expandCollapseButton" data-frameId="frame4">+</button>
  226. <div class="source">
  227. <ol start="66" class="collapsible">
  228. <li>
  229. <span> {</span>
  230. </li>
  231. <li>
  232. <span> x.Events = new JwtBearerEvents</span>
  233. </li>
  234. <li>
  235. <span> {</span>
  236. </li>
  237. <li>
  238. <span> OnTokenValidated = context =&gt;</span>
  239. </li>
  240. <li>
  241. <span> {</span>
  242. </li>
  243. <li>
  244. <span> var userService = context.HttpContext.RequestServices.GetRequiredService&lt;IUserService&gt;();</span>
  245. </li>
  246. </ol>
  247. <ol start="72" class="highlight">
  248. <li>
  249. <span> var userId = int.Parse(context.Principal.Identity.Name);</span>
  250. </li>
  251. </ol>
  252. <ol start='73' class="collapsible">
  253. <li>
  254. <span> var user = userService.GetById(userId);</span>
  255. </li>
  256. <li>
  257. <span> if (user == null)</span>
  258. </li>
  259. <li>
  260. <span> {</span>
  261. </li>
  262. <li>
  263. <span> // return unauthorized if user no longer exists</span>
  264. </li>
  265. <li>
  266. <span> context.Fail(&quot;Unauthorized&quot;);</span>
  267. </li>
  268. <li>
  269. <span> }</span>
  270. </li>
  271. </ol>
  272. </div>
  273. </li>
  274. <li class="frame" id="frame5">
  275. <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.TokenValidated(TokenValidatedContext context)</h3>
  276. </li>
  277. <li class="frame" id="frame6">
  278. <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()</h3>
  279. </li>
  280. <li class="frame" id="frame7">
  281. <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()</h3>
  282. </li>
  283. <li class="frame" id="frame8">
  284. <h3>Microsoft.AspNetCore.Authentication.AuthenticationHandler&lt;TOptions&gt;.AuthenticateAsync()</h3>
  285. </li>
  286. <li class="frame" id="frame9">
  287. <h3>Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, string scheme)</h3>
  288. </li>
  289. <li class="frame" id="frame10">
  290. <h3>Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)</h3>
  291. </li>
  292. <li class="frame" id="frame11">
  293. <h3>Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)</h3>
  294. </li>
  295. <li class="frame" id="frame12">
  296. <h3>Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)</h3>
  297. </li>
  298. <li class="frame" id="frame13">
  299. <h3>Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)</h3>
  300. </li>
  301. </ul>
  302. </li>
  303. <li>
  304. <br/>
  305. <div class="rawExceptionBlock">
  306. <div class="showRawExceptionContainer">
  307. <button class="showRawException" data-exceptionDetailId="exceptionDetail1">Show raw exception details</button>
  308. </div>
  309. <div id="exceptionDetail1" class="rawExceptionDetails">
  310. <pre class="rawExceptionStackTrace">System.FormatException: Input string was not in a correct format.&#xD;&#xA; at System.Number.StringToNumber(ReadOnlySpan`1 str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)&#xD;&#xA; at System.Number.ParseInt32(ReadOnlySpan`1 s, NumberStyles style, NumberFormatInfo info)&#xD;&#xA; at System.Int32.Parse(String s)&#xD;&#xA; at ParkBuddies.Startup.&lt;&gt;c.&lt;ConfigureServices&gt;b__4_5(TokenValidatedContext context) in C:\Users\User\Desktop\ParkBuddies\ParkBuddies\Startup.cs:line 72&#xD;&#xA; at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.TokenValidated(TokenValidatedContext context)&#xD;&#xA; at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()&#xD;&#xA; at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()&#xD;&#xA; at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()&#xD;&#xA; at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)&#xD;&#xA; at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)&#xD;&#xA; at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)&#xD;&#xA; at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)&#xD;&#xA; at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)</pre>
  311. </div>
  312. </div>
  313. </li>
  314. </ul>
  315. </div>
  316. <div id="querypage" class="page">
  317. <p>No QueryString data.</p>
  318. </div>
  319. <div id="cookiespage" class="page">
  320. <p>No cookie data.</p>
  321. </div>
  322. <div id="headerspage" class="page">
  323. <table>
  324. <thead>
  325. <tr>
  326. <th>Variable</th>
  327. <th>Value</th>
  328. </tr>
  329. </thead>
  330. <tbody>
  331. <tr>
  332. <td>Accept</td>
  333. <td>*/*</td>
  334. </tr>
  335. <tr>
  336. <td>Accept-Encoding</td>
  337. <td>gzip, deflate</td>
  338. </tr>
  339. <tr>
  340. <td>Authorization</td>
  341. <td>Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjM1NWU5MWRhLTg3ZTctNGMwMy1hNWQwLTg2MGNlZDZjYzU5MCIsIm5iZiI6MTU0NzgyMDg2NSwiZXhwIjoxNTQ4NDI1NjY1LCJpYXQiOjE1NDc4MjA4NjV9.Tg-tmgOPSAahS-TOxI_ixM0Xv2xRzMe-M3ypTBIvcBs</td>
  342. </tr>
  343. <tr>
  344. <td>Cache-Control</td>
  345. <td>no-cache</td>
  346. </tr>
  347. <tr>
  348. <td>Connection</td>
  349. <td>Keep-Alive</td>
  350. </tr>
  351. <tr>
  352. <td>Content-Type</td>
  353. <td>application/json</td>
  354. </tr>
  355. <tr>
  356. <td>Host</td>
  357. <td>localhost:44359</td>
  358. </tr>
  359. <tr>
  360. <td>MS-ASPNETCORE-TOKEN</td>
  361. <td>18582346-09c3-4698-be31-3d7417712d78</td>
  362. </tr>
  363. <tr>
  364. <td>Postman-Token</td>
  365. <td>42403181-dd47-436d-a9ee-521859dd942e</td>
  366. </tr>
  367. <tr>
  368. <td>User-Agent</td>
  369. <td>PostmanRuntime/7.6.0</td>
  370. </tr>
  371. <tr>
  372. <td>X-Original-For</td>
  373. <td>127.0.0.1:63326</td>
  374. </tr>
  375. <tr>
  376. <td>X-Original-Proto</td>
  377. <td>http</td>
  378. </tr>
  379. </tbody>
  380. </table>
  381. </div>
  382. <script>
  383. //
  384. <!--
  385. (function (window, undefined) {
  386. "use strict";
  387.  
  388. function ns(selector, element) {
  389. return new NodeCollection(selector, element);
  390. }
  391.  
  392. function NodeCollection(selector, element) {
  393. this.items = [];
  394. element = element || window.document;
  395.  
  396. var nodeList;
  397.  
  398. if (typeof (selector) === "string") {
  399. nodeList = element.querySelectorAll(selector);
  400. for (var i = 0, l = nodeList.length; i < l; i++) {
  401. this.items.push(nodeList.item(i));
  402. }
  403. }
  404. }
  405.  
  406. NodeCollection.prototype = {
  407. each: function (callback) {
  408. for (var i = 0, l = this.items.length; i < l; i++) {
  409. callback(this.items[i], i);
  410. }
  411. return this;
  412. },
  413.  
  414. children: function (selector) {
  415. var children = [];
  416.  
  417. this.each(function (el) {
  418. children = children.concat(ns(selector, el).items);
  419. });
  420.  
  421. return ns(children);
  422. },
  423.  
  424. hide: function () {
  425. this.each(function (el) {
  426. el.style.display = "none";
  427. });
  428.  
  429. return this;
  430. },
  431.  
  432. toggle: function () {
  433. this.each(function (el) {
  434. el.style.display = el.style.display === "none" ? "" : "none";
  435. });
  436.  
  437. return this;
  438. },
  439.  
  440. show: function () {
  441. this.each(function (el) {
  442. el.style.display = "";
  443. });
  444.  
  445. return this;
  446. },
  447.  
  448. addClass: function (className) {
  449. this.each(function (el) {
  450. var existingClassName = el.className,
  451. classNames;
  452. if (!existingClassName) {
  453. el.className = className;
  454. } else {
  455. classNames = existingClassName.split(" ");
  456. if (classNames.indexOf(className) < 0) {
  457. el.className = existingClassName + " " + className;
  458. }
  459. }
  460. });
  461.  
  462. return this;
  463. },
  464.  
  465. removeClass: function (className) {
  466. this.each(function (el) {
  467. var existingClassName = el.className,
  468. classNames, index;
  469. if (existingClassName === className) {
  470. el.className = "";
  471. } else if (existingClassName) {
  472. classNames = existingClassName.split(" ");
  473. index = classNames.indexOf(className);
  474. if (index > 0) {
  475. classNames.splice(index, 1);
  476. el.className = classNames.join(" ");
  477. }
  478. }
  479. });
  480.  
  481. return this;
  482. },
  483.  
  484. attr: function (name) {
  485. if (this.items.length === 0) {
  486. return null;
  487. }
  488.  
  489. return this.items[0].getAttribute(name);
  490. },
  491.  
  492. on: function (eventName, handler) {
  493. this.each(function (el, idx) {
  494. var callback = function (e) {
  495. e = e || window.event;
  496. if (!e.which && e.keyCode) {
  497. e.which = e.keyCode; // Normalize IE8 key events
  498. }
  499. handler.apply(el, [e]);
  500. };
  501.  
  502. if (el.addEventListener) { // DOM Events
  503. el.addEventListener(eventName, callback, false);
  504. } else if (el.attachEvent) { // IE8 events
  505. el.attachEvent("on" + eventName, callback);
  506. } else {
  507. el["on" + type] = callback;
  508. }
  509. });
  510.  
  511. return this;
  512. },
  513.  
  514. click: function (handler) {
  515. return this.on("click", handler);
  516. },
  517.  
  518. keypress: function (handler) {
  519. return this.on("keypress", handler);
  520. }
  521. };
  522.  
  523. function frame(el) {
  524. ns(".source .collapsible", el).toggle();
  525. }
  526.  
  527. function expandCollapseButton(el) {
  528. var frameId = el.getAttribute("data-frameId");
  529. frame(document.getElementById(frameId));
  530. if (el.innerText === "+") {
  531. el.innerText = "-";
  532. }
  533. else {
  534. el.innerText = "+";
  535. }
  536. }
  537.  
  538. function tab(el) {
  539. var unselected = ns("#header .selected").removeClass("selected").attr("id");
  540. var selected = ns("#" + el.id).addClass("selected").attr("id");
  541.  
  542. ns("#" + unselected + "page").hide();
  543. ns("#" + selected + "page").show();
  544. }
  545.  
  546. ns(".rawExceptionDetails").hide();
  547. ns(".collapsible").hide();
  548. ns(".page").hide();
  549. ns("#stackpage").show();
  550.  
  551. ns(".expandCollapseButton")
  552. .click(function () {
  553. expandCollapseButton(this);
  554. })
  555. .keypress(function (e) {
  556. if (e.which === 13) {
  557. expandCollapseButton(this);
  558. }
  559. });
  560.  
  561. ns("#header li")
  562. .click(function () {
  563. tab(this);
  564. })
  565. .keypress(function (e) {
  566. if (e.which === 13) {
  567. tab(this);
  568. }
  569. });
  570.  
  571. ns(".showRawException")
  572. .click(function () {
  573. var exceptionDetailId = this.getAttribute("data-exceptionDetailId");
  574. ns("#" + exceptionDetailId).toggle();
  575. });
  576. })(window);
  577. //-->
  578.  
  579. </script>
  580. </body>
  581. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement