Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8" />
- <title>Internal Server Error</title>
- <style>
- body {
- font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
- font-size: .813em;
- color: #222;
- background-color: #fff;
- }
- code {
- font-family: Consolas, "Courier New", courier, monospace;
- }
- body .titleerror {
- padding: 3px 3px 6px 3px;
- display: block;
- font-size: 1.5em;
- font-weight: 100;
- }
- body .location {
- margin: 3px 0 10px 30px;
- }
- #header {
- font-size: 18px;
- padding: 15px 0;
- border-top: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
- margin-bottom: 0;
- }
- #header li {
- display: inline;
- margin: 5px;
- padding: 5px;
- color: #a0a0a0;
- cursor: pointer;
- }
- #header .selected {
- background: #44c5f2;
- color: #fff;
- }
- #stackpage ul {
- list-style: none;
- padding-left: 0;
- margin: 0;
- /*border-bottom: 1px #ddd solid;*/
- }
- #stackpage .details {
- font-size: 1.2em;
- padding: 3px;
- color: #000;
- }
- #stackpage .stackerror {
- padding: 5px;
- border-bottom: 1px #ddd solid;
- }
- #stackpage .frame {
- padding: 0;
- margin: 0 0 0 30px;
- }
- #stackpage .frame h3 {
- padding: 2px;
- margin: 0;
- }
- #stackpage .source {
- padding: 0 0 0 30px;
- }
- #stackpage .source ol li {
- font-family: Consolas, "Courier New", courier, monospace;
- white-space: pre;
- background-color: #fbfbfb;
- }
- #stackpage .frame .source .highlight li span {
- color: #FF0000;
- }
- #stackpage .source ol.collapsible li {
- color: #888;
- }
- #stackpage .source ol.collapsible li span {
- color: #606060;
- }
- .page table {
- border-collapse: separate;
- border-spacing: 0;
- margin: 0 0 20px;
- }
- .page th {
- vertical-align: bottom;
- padding: 10px 5px 5px 5px;
- font-weight: 400;
- color: #a0a0a0;
- text-align: left;
- }
- .page td {
- padding: 3px 10px;
- }
- .page th, .page td {
- border-right: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
- border-left: 1px transparent solid;
- border-top: 1px transparent solid;
- box-sizing: border-box;
- }
- .page th:last-child, .page td:last-child {
- border-right: 1px transparent solid;
- }
- .page .length {
- text-align: right;
- }
- a {
- color: #1ba1e2;
- text-decoration: none;
- }
- a:hover {
- color: #13709e;
- text-decoration: underline;
- }
- .showRawException {
- cursor: pointer;
- color: #44c5f2;
- background-color: transparent;
- font-size: 1.2em;
- text-align: left;
- text-decoration: none;
- display: inline-block;
- border: 0;
- padding: 0;
- }
- .rawExceptionStackTrace {
- font-size: 1.2em;
- }
- .rawExceptionBlock {
- border-top: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
- }
- .showRawExceptionContainer {
- margin-top: 10px;
- margin-bottom: 10px;
- }
- .expandCollapseButton {
- cursor: pointer;
- float: left;
- height: 16px;
- width: 16px;
- font-size: 10px;
- position: absolute;
- left: 10px;
- background-color: #eee;
- padding: 0;
- border: 0;
- margin: 0;
- }
- </style>
- </head>
- <body>
- <h1>An unhandled exception occurred while processing the request.</h1>
- <div class="titleerror">FormatException: Input string was not in a correct format.</div>
- <p class="location">System.Number.StringToNumber(ReadOnlySpan<char> str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, bool parseDecimal)</p>
- <ul id="header">
- <li id="stack" tabindex="1" class="selected">
- Stack
- </li>
- <li id="query" tabindex="2">
- Query
- </li>
- <li id="cookies" tabindex="3">
- Cookies
- </li>
- <li id="headers" tabindex="4">
- Headers
- </li>
- </ul>
- <div id="stackpage" class="page">
- <ul>
- <li>
- <h2 class="stackerror">FormatException: Input string was not in a correct format.</h2>
- <ul>
- <li class="frame" id="frame1">
- <h3>System.Number.StringToNumber(ReadOnlySpan<char> str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, bool parseDecimal)</h3>
- </li>
- <li class="frame" id="frame2">
- <h3>System.Number.ParseInt32(ReadOnlySpan<char> s, NumberStyles style, NumberFormatInfo info)</h3>
- </li>
- <li class="frame" id="frame3">
- <h3>int.Parse(string s)</h3>
- </li>
- <li class="frame" id="frame4">
- <h3>ParkBuddies.Startup+<>c.<ConfigureServices>b__4_5(TokenValidatedContext context) in
- <code title="C:\Users\User\Desktop\ParkBuddies\ParkBuddies\Startup.cs">Startup.cs</code>
- </h3>
- <button class="expandCollapseButton" data-frameId="frame4">+</button>
- <div class="source">
- <ol start="66" class="collapsible">
- <li>
- <span> {</span>
- </li>
- <li>
- <span> x.Events = new JwtBearerEvents</span>
- </li>
- <li>
- <span> {</span>
- </li>
- <li>
- <span> OnTokenValidated = context =></span>
- </li>
- <li>
- <span> {</span>
- </li>
- <li>
- <span> var userService = context.HttpContext.RequestServices.GetRequiredService<IUserService>();</span>
- </li>
- </ol>
- <ol start="72" class="highlight">
- <li>
- <span> var userId = int.Parse(context.Principal.Identity.Name);</span>
- </li>
- </ol>
- <ol start='73' class="collapsible">
- <li>
- <span> var user = userService.GetById(userId);</span>
- </li>
- <li>
- <span> if (user == null)</span>
- </li>
- <li>
- <span> {</span>
- </li>
- <li>
- <span> // return unauthorized if user no longer exists</span>
- </li>
- <li>
- <span> context.Fail("Unauthorized");</span>
- </li>
- <li>
- <span> }</span>
- </li>
- </ol>
- </div>
- </li>
- <li class="frame" id="frame5">
- <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.TokenValidated(TokenValidatedContext context)</h3>
- </li>
- <li class="frame" id="frame6">
- <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()</h3>
- </li>
- <li class="frame" id="frame7">
- <h3>Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()</h3>
- </li>
- <li class="frame" id="frame8">
- <h3>Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>.AuthenticateAsync()</h3>
- </li>
- <li class="frame" id="frame9">
- <h3>Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, string scheme)</h3>
- </li>
- <li class="frame" id="frame10">
- <h3>Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)</h3>
- </li>
- <li class="frame" id="frame11">
- <h3>Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)</h3>
- </li>
- <li class="frame" id="frame12">
- <h3>Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)</h3>
- </li>
- <li class="frame" id="frame13">
- <h3>Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)</h3>
- </li>
- </ul>
- </li>
- <li>
- <br/>
- <div class="rawExceptionBlock">
- <div class="showRawExceptionContainer">
- <button class="showRawException" data-exceptionDetailId="exceptionDetail1">Show raw exception details</button>
- </div>
- <div id="exceptionDetail1" class="rawExceptionDetails">
- <pre class="rawExceptionStackTrace">System.FormatException: Input string was not in a correct format.
 at System.Number.StringToNumber(ReadOnlySpan`1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
 at System.Number.ParseInt32(ReadOnlySpan`1 s, NumberStyles style, NumberFormatInfo info)
 at System.Int32.Parse(String s)
 at ParkBuddies.Startup.<>c.<ConfigureServices>b__4_5(TokenValidatedContext context) in C:\Users\User\Desktop\ParkBuddies\ParkBuddies\Startup.cs:line 72
 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.TokenValidated(TokenValidatedContext context)
 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
 at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
 at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
 at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
 at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)
 at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
 at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)</pre>
- </div>
- </div>
- </li>
- </ul>
- </div>
- <div id="querypage" class="page">
- <p>No QueryString data.</p>
- </div>
- <div id="cookiespage" class="page">
- <p>No cookie data.</p>
- </div>
- <div id="headerspage" class="page">
- <table>
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Accept</td>
- <td>*/*</td>
- </tr>
- <tr>
- <td>Accept-Encoding</td>
- <td>gzip, deflate</td>
- </tr>
- <tr>
- <td>Authorization</td>
- <td>Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjM1NWU5MWRhLTg3ZTctNGMwMy1hNWQwLTg2MGNlZDZjYzU5MCIsIm5iZiI6MTU0NzgyMDg2NSwiZXhwIjoxNTQ4NDI1NjY1LCJpYXQiOjE1NDc4MjA4NjV9.Tg-tmgOPSAahS-TOxI_ixM0Xv2xRzMe-M3ypTBIvcBs</td>
- </tr>
- <tr>
- <td>Cache-Control</td>
- <td>no-cache</td>
- </tr>
- <tr>
- <td>Connection</td>
- <td>Keep-Alive</td>
- </tr>
- <tr>
- <td>Content-Type</td>
- <td>application/json</td>
- </tr>
- <tr>
- <td>Host</td>
- <td>localhost:44359</td>
- </tr>
- <tr>
- <td>MS-ASPNETCORE-TOKEN</td>
- <td>18582346-09c3-4698-be31-3d7417712d78</td>
- </tr>
- <tr>
- <td>Postman-Token</td>
- <td>42403181-dd47-436d-a9ee-521859dd942e</td>
- </tr>
- <tr>
- <td>User-Agent</td>
- <td>PostmanRuntime/7.6.0</td>
- </tr>
- <tr>
- <td>X-Original-For</td>
- <td>127.0.0.1:63326</td>
- </tr>
- <tr>
- <td>X-Original-Proto</td>
- <td>http</td>
- </tr>
- </tbody>
- </table>
- </div>
- <script>
- //
- <!--
- (function (window, undefined) {
- "use strict";
- function ns(selector, element) {
- return new NodeCollection(selector, element);
- }
- function NodeCollection(selector, element) {
- this.items = [];
- element = element || window.document;
- var nodeList;
- if (typeof (selector) === "string") {
- nodeList = element.querySelectorAll(selector);
- for (var i = 0, l = nodeList.length; i < l; i++) {
- this.items.push(nodeList.item(i));
- }
- }
- }
- NodeCollection.prototype = {
- each: function (callback) {
- for (var i = 0, l = this.items.length; i < l; i++) {
- callback(this.items[i], i);
- }
- return this;
- },
- children: function (selector) {
- var children = [];
- this.each(function (el) {
- children = children.concat(ns(selector, el).items);
- });
- return ns(children);
- },
- hide: function () {
- this.each(function (el) {
- el.style.display = "none";
- });
- return this;
- },
- toggle: function () {
- this.each(function (el) {
- el.style.display = el.style.display === "none" ? "" : "none";
- });
- return this;
- },
- show: function () {
- this.each(function (el) {
- el.style.display = "";
- });
- return this;
- },
- addClass: function (className) {
- this.each(function (el) {
- var existingClassName = el.className,
- classNames;
- if (!existingClassName) {
- el.className = className;
- } else {
- classNames = existingClassName.split(" ");
- if (classNames.indexOf(className) < 0) {
- el.className = existingClassName + " " + className;
- }
- }
- });
- return this;
- },
- removeClass: function (className) {
- this.each(function (el) {
- var existingClassName = el.className,
- classNames, index;
- if (existingClassName === className) {
- el.className = "";
- } else if (existingClassName) {
- classNames = existingClassName.split(" ");
- index = classNames.indexOf(className);
- if (index > 0) {
- classNames.splice(index, 1);
- el.className = classNames.join(" ");
- }
- }
- });
- return this;
- },
- attr: function (name) {
- if (this.items.length === 0) {
- return null;
- }
- return this.items[0].getAttribute(name);
- },
- on: function (eventName, handler) {
- this.each(function (el, idx) {
- var callback = function (e) {
- e = e || window.event;
- if (!e.which && e.keyCode) {
- e.which = e.keyCode; // Normalize IE8 key events
- }
- handler.apply(el, [e]);
- };
- if (el.addEventListener) { // DOM Events
- el.addEventListener(eventName, callback, false);
- } else if (el.attachEvent) { // IE8 events
- el.attachEvent("on" + eventName, callback);
- } else {
- el["on" + type] = callback;
- }
- });
- return this;
- },
- click: function (handler) {
- return this.on("click", handler);
- },
- keypress: function (handler) {
- return this.on("keypress", handler);
- }
- };
- function frame(el) {
- ns(".source .collapsible", el).toggle();
- }
- function expandCollapseButton(el) {
- var frameId = el.getAttribute("data-frameId");
- frame(document.getElementById(frameId));
- if (el.innerText === "+") {
- el.innerText = "-";
- }
- else {
- el.innerText = "+";
- }
- }
- function tab(el) {
- var unselected = ns("#header .selected").removeClass("selected").attr("id");
- var selected = ns("#" + el.id).addClass("selected").attr("id");
- ns("#" + unselected + "page").hide();
- ns("#" + selected + "page").show();
- }
- ns(".rawExceptionDetails").hide();
- ns(".collapsible").hide();
- ns(".page").hide();
- ns("#stackpage").show();
- ns(".expandCollapseButton")
- .click(function () {
- expandCollapseButton(this);
- })
- .keypress(function (e) {
- if (e.which === 13) {
- expandCollapseButton(this);
- }
- });
- ns("#header li")
- .click(function () {
- tab(this);
- })
- .keypress(function (e) {
- if (e.which === 13) {
- tab(this);
- }
- });
- ns(".showRawException")
- .click(function () {
- var exceptionDetailId = this.getAttribute("data-exceptionDetailId");
- ns("#" + exceptionDetailId).toggle();
- });
- })(window);
- //-->
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement