I have not solved the issue but the main issue is the type built into the middleware request handler the first error Params is not supported as a request handler so I was thinking of extending the type so it can support it, but once I get it done, would edit this post