Added middleware
Added an endpoint for invoking a response directly, circumventing the add_routes langserve method, to identify where the issue lies while deploying.
Result: Got the same error message regardless of using langserve or not, so added back in but kept the middleware.