中间件返回的不是 Response 对象。
MiddlewareNotAResponse:从中间件返回的任何数据都必须是有效的
Response
对象。¥MiddlewareNotAResponse: Any data returned from middleware must be a valid
Response
object.
什么地方出了错?
Section titled 什么地方出了错?¥What went wrong?
当中间件返回非 Response
对象的内容时,抛出开发模式。
¥Thrown in development mode when middleware returns something that is not a Response
object.
例如:
¥For example:
Error Reference