Advertisement
Guest User

JwtBearer Validation Bearer failure

a guest
Mar 28th, 2018
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.13 KB | None | 0 0
  1. [10:09:30 ERR] An unhandled exception has occurred while executing the request
  2. System.InvalidOperationException: StatusCode cannot be set because the response has already started.
  3. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.ThrowResponseAlreadyStartedException(String value)
  4. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.set_StatusCode(Int32 value)
  5. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.set_StatusCode(Int32 value)
  6. at Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse.set_StatusCode(Int32 value)
  7. at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleChallengeAsync>d__7.MoveNext()
  8. --- End of stack trace from previous location where exception was thrown ---
  9. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  10. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  11. at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.<ChallengeAsync>d__53.MoveNext()
  12. --- End of stack trace from previous location where exception was thrown ---
  13. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  14. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  15. at Microsoft.AspNetCore.Authentication.AuthenticationService.<ChallengeAsync>d__11.MoveNext()
  16. --- End of stack trace from previous location where exception was thrown ---
  17. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  18. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  19. at Microsoft.AspNetCore.Mvc.ChallengeResult.<ExecuteResultAsync>d__14.MoveNext()
  20. --- End of stack trace from previous location where exception was thrown ---
  21. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  22. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  23. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeResultAsync>d__19.MoveNext()
  24. --- End of stack trace from previous location where exception was thrown ---
  25. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  26. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  27. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__17.MoveNext()
  28. --- End of stack trace from previous location where exception was thrown ---
  29. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  30. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  31. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__15.MoveNext()
  32. --- End of stack trace from previous location where exception was thrown ---
  33. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  34. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  35. at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
  36. --- End of stack trace from previous location where exception was thrown ---
  37. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  38. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  39. at WebCsProj.Infrastructure.RequestMetadataMiddelware.<>c.<<UseRequestMetadataExtractor>b__0_0>d.MoveNext() in C:\Users\justin.dearing\source\repos\my-solution\WebCsProj\Infrastructure\RequestMetadataMiddelware.cs:line 22
  40. --- End of stack trace from previous location where exception was thrown ---
  41. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  42. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  43. at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext()
  44. --- End of stack trace from previous location where exception was thrown ---
  45. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  46. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  47. at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.<Invoke>d__7.MoveNext()
  48. --- End of stack trace from previous location where exception was thrown ---
  49. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  50. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  51. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.<Invoke>d__4.MoveNext()
  52. --- End of stack trace from previous location where exception was thrown ---
  53. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  54. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  55. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()
  56. --- End of stack trace from previous location where exception was thrown ---
  57. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  58. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()
  59. --- End of stack trace from previous location where exception was thrown ---
  60. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  61. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  62. at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
  63. [10:09:30 WRN] The response has already started, the error page middleware will not be executed.
  64. [10:09:30 ERR] Connection id "0HLCKMLV6IR74", Request id "0HLCKMLV6IR74:00000001": An unhandled exception was thrown by the application.
  65. System.InvalidOperationException: StatusCode cannot be set because the response has already started.
  66. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.ThrowResponseAlreadyStartedException(String value)
  67. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.set_StatusCode(Int32 value)
  68. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.set_StatusCode(Int32 value)
  69. at Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse.set_StatusCode(Int32 value)
  70. at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleChallengeAsync>d__7.MoveNext()
  71. --- End of stack trace from previous location where exception was thrown ---
  72. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  73. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  74. at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.<ChallengeAsync>d__53.MoveNext()
  75. --- End of stack trace from previous location where exception was thrown ---
  76. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  77. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  78. at Microsoft.AspNetCore.Authentication.AuthenticationService.<ChallengeAsync>d__11.MoveNext()
  79. --- End of stack trace from previous location where exception was thrown ---
  80. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  81. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  82. at Microsoft.AspNetCore.Mvc.ChallengeResult.<ExecuteResultAsync>d__14.MoveNext()
  83. --- End of stack trace from previous location where exception was thrown ---
  84. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  85. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  86. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeResultAsync>d__19.MoveNext()
  87. --- End of stack trace from previous location where exception was thrown ---
  88. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  89. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  90. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__17.MoveNext()
  91. --- End of stack trace from previous location where exception was thrown ---
  92. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  93. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  94. at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__15.MoveNext()
  95. --- End of stack trace from previous location where exception was thrown ---
  96. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  97. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  98. at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
  99. --- End of stack trace from previous location where exception was thrown ---
  100. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  101. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  102. at WebCsProj.Infrastructure.RequestMetadataMiddelware.<>c.<<UseRequestMetadataExtractor>b__0_0>d.MoveNext() in C:\Users\justin.dearing\source\repos\my-solution\WebCsProj\Infrastructure\RequestMetadataMiddelware.cs:line 22
  103. --- End of stack trace from previous location where exception was thrown ---
  104. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  105. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  106. at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext()
  107. --- End of stack trace from previous location where exception was thrown ---
  108. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  109. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  110. at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.<Invoke>d__7.MoveNext()
  111. --- End of stack trace from previous location where exception was thrown ---
  112. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  113. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  114. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.<Invoke>d__4.MoveNext()
  115. --- End of stack trace from previous location where exception was thrown ---
  116. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  117. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  118. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()
  119. --- End of stack trace from previous location where exception was thrown ---
  120. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  121. at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()
  122. --- End of stack trace from previous location where exception was thrown ---
  123. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  124. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  125. at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
  126. --- End of stack trace from previous location where exception was thrown ---
  127. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  128. at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
  129. --- End of stack trace from previous location where exception was thrown ---
  130. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  131. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  132. at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
  133. --- End of stack trace from previous location where exception was thrown ---
  134. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  135. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  136. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext()
  137. [10:09:30 INF] Request finished in 13106.4002ms 200 text/plain
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement