-
Notifications
You must be signed in to change notification settings - Fork 32
Description
It seems that if you add the Stackify Dotnet Core middleware into your application pipeline it will override a server exception and return it as a 200 response code. As you can imagine, this can cause some issues when dealing with an API.
To reproduce this fire up any MVC application and configure it to use StackifyMiddleware. Once you do that in any controller configure the action to throw and exception. From the client, even though the exception is thrown, a 200 is received.
Startup Configure
public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseStackifyMiddleware(); app.UseMvc(); }
Controller Action
public async Task<ActionResult<IEnumerable<string>>> Get() { throw new SystemException(); }
Since it doesnt appear the UseStackifyMiddleware is open source, I figured this to be the next best place to get a comment on this issue with this product. If there is a better way to get support, please let me know.