{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-expressive/issues/146","labels_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/146/comments","events_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/146/events","html_url":"https://github.com/zendframework/zend-expressive/issues/146","id":109826317,"number":146,"title":"pipe fails to continue with no matched route","user":{"login":"fabiocarneiro","id":1375034,"avatar_url":"https://avatars.githubusercontent.com/u/1375034?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiocarneiro","html_url":"https://github.com/fabiocarneiro","followers_url":"https://api.github.com/users/fabiocarneiro/followers","following_url":"https://api.github.com/users/fabiocarneiro/following{/other_user}","gists_url":"https://api.github.com/users/fabiocarneiro/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiocarneiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiocarneiro/subscriptions","organizations_url":"https://api.github.com/users/fabiocarneiro/orgs","repos_url":"https://api.github.com/users/fabiocarneiro/repos","events_url":"https://api.github.com/users/fabiocarneiro/events{/privacy}","received_events_url":"https://api.github.com/users/fabiocarneiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T15:45:31Z","updated_at":"2015-10-09T20:15:03Z","closed_at":null,"body":"The problem occurs when I try to return add a JsonResponse to the $next callable in pre_routing. Having something in post_routing doesn't really make any difference but I was expecting the request to reach a middleware there.\r\n\r\nhttps://gist.github.com/fabiocarneiro/81ea4e1eb0a52b8ded12\r\n\r\n```\r\n2015/10/05 15:32:17 [error] 15#0: *320 FastCGI sent in stderr: \"PHP message: PHP Catchable fatal error:  Argument 4 passed to Zend\\Stratigility\\Dispatch::__invoke() must be an instance of Zend\\Stratigility\\Http\\Response, instance of Zend\\Diactoros\\Response\\JsonResponse given, called in /usr/share/nginx/html/vendor/zendframework/zend-stratigility/src/Next.php on line 113 and defined in /usr/share/nginx/html/vendor/zendframework/zend-stratigility/src/Dispatch.php on line 53\" while reading response header from upstream, client: 172.17.42.1, server: , request: \"POST /login HTTP/1.1\", upstream: \"fastcgi://unix:/var/run/php5-fpm.sock:\", host: \"localhost\", referrer: \"http://localhost:63342/frontend/index.html\"\r\n```"},"comment":{"url":"https://api.github.com/repos/zendframework/zend-expressive/issues/comments/146976417","html_url":"https://github.com/zendframework/zend-expressive/issues/146#issuecomment-146976417","issue_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/146","id":146976417,"user":{"login":"danizord","id":1850941,"avatar_url":"https://avatars.githubusercontent.com/u/1850941?v=3","gravatar_id":"","url":"https://api.github.com/users/danizord","html_url":"https://github.com/danizord","followers_url":"https://api.github.com/users/danizord/followers","following_url":"https://api.github.com/users/danizord/following{/other_user}","gists_url":"https://api.github.com/users/danizord/gists{/gist_id}","starred_url":"https://api.github.com/users/danizord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danizord/subscriptions","organizations_url":"https://api.github.com/users/danizord/orgs","repos_url":"https://api.github.com/users/danizord/repos","events_url":"https://api.github.com/users/danizord/events{/privacy}","received_events_url":"https://api.github.com/users/danizord/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T20:15:03Z","updated_at":"2015-10-09T20:15:03Z","body":"I think https://github.com/zendframework/zend-stratigility/pull/32 fixes this one"}}