We have middleware in a web API, which we use to filter the resposne body from a controller After updating our service to .net 5, replacing the output fails with