{"action":"closed","issue":{"url":"https://api.github.com/repos/zendframework/zend-stratigility/issues/84","repository_url":"https://api.github.com/repos/zendframework/zend-stratigility","labels_url":"https://api.github.com/repos/zendframework/zend-stratigility/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-stratigility/issues/84/comments","events_url":"https://api.github.com/repos/zendframework/zend-stratigility/issues/84/events","html_url":"https://github.com/zendframework/zend-stratigility/issues/84","id":188554863,"number":84,"title":"raiseThrowables() - Issue here or in Expressive?","user":{"login":"moderndeveloperllc","id":1920405,"avatar_url":"https://avatars.githubusercontent.com/u/1920405?v=3","gravatar_id":"","url":"https://api.github.com/users/moderndeveloperllc","html_url":"https://github.com/moderndeveloperllc","followers_url":"https://api.github.com/users/moderndeveloperllc/followers","following_url":"https://api.github.com/users/moderndeveloperllc/following{/other_user}","gists_url":"https://api.github.com/users/moderndeveloperllc/gists{/gist_id}","starred_url":"https://api.github.com/users/moderndeveloperllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderndeveloperllc/subscriptions","organizations_url":"https://api.github.com/users/moderndeveloperllc/orgs","repos_url":"https://api.github.com/users/moderndeveloperllc/repos","events_url":"https://api.github.com/users/moderndeveloperllc/events{/privacy}","received_events_url":"https://api.github.com/users/moderndeveloperllc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-10T16:30:13Z","updated_at":"2016-11-10T21:14:29Z","closed_at":"2016-11-10T21:14:29Z","body":"I might just have really bad timing with this, but I'm having issues with 1.3.0 and Expressive `master` branch which I think is related to `raiseThrowables()`. I'm using configuration-driven pipelining, and have converted to the new style of handling errors, but `throw`n exceptions are not bubbling their way out to the error middleware - they are hitting the error depreciation notice in `Next`. \r\n\r\nDo I just need to wait till Expressive is updated, or is this a Stratigility issue?\r\n\r\nFWIW, here is my pipeline config (I factory `ErrorHandler` for a custom generator):\r\n\r\n```php\r\nreturn [\r\n    'dependencies'        => [\r\n        'factories'  => [\r\n            Helper\\ServerUrlMiddleware::class          => Helper\\ServerUrlMiddlewareFactory::class,\r\n            Helper\\UrlHelperMiddleware::class          => Helper\\UrlHelperMiddlewareFactory::class,\r\n            MyApp\\Action\\AuthenticationAction::class   => MyApp\\Action\\AuthenticationFactory::class,\r\n            Zend\\Stratigility\\Middleware\\ErrorHandler::class => MyApp\\ErrorHandling\\ErrorHandlerFactory::class\r\n        ],\r\n        'invokables' => [\r\n            Zend\\Stratigility\\Middleware\\OriginalMessages::class => Zend\\Stratigility\\Middleware\\OriginalMessages::class,\r\n            Zend\\Stratigility\\NoopFinalHandler::class => Zend\\Stratigility\\NoopFinalHandler::class,\r\n            Helper\\BodyParams\\BodyParamsMiddleware::class => Helper\\BodyParams\\BodyParamsMiddleware::class,\r\n            MyApp\\Action\\AuthorizationAction::class => MyApp\\Action\\AuthorizationAction::class,\r\n            MyApp\\ErrorHandling\\ErrorResponseGenerator::class => MyApp\\ErrorHandling\\ErrorResponseGenerator::class,\r\n        ],\r\n    ],\r\n    'middleware_pipeline' => [\r\n        'always' => [\r\n            'middleware' => [\r\n                Zend\\Stratigility\\Middleware\\OriginalMessages::class,\r\n                Zend\\Stratigility\\Middleware\\ErrorHandler::class,\r\n                Helper\\ServerUrlMiddleware::class,\r\n                Helper\\BodyParams\\BodyParamsMiddleware::class,\r\n            ],\r\n            'priority'   => 10000,\r\n        ],\r\n\r\n        'routing' => [\r\n            'middleware' => [\r\n                ApplicationFactory::ROUTING_MIDDLEWARE,\r\n                Helper\\UrlHelperMiddleware::class,\r\n                MyApp\\Action\\AuthenticationAction::class,\r\n                MyApp\\Action\\AuthorizationAction::class,\r\n                ApplicationFactory::DISPATCH_MIDDLEWARE,\r\n            ],\r\n            'priority'   => 1,\r\n        ],\r\n\r\n        'final' => [\r\n            'middleware' => [\r\n                Zend\\Stratigility\\NoopFinalHandler::class\r\n            ],\r\n            'priority'   => -10000,\r\n        ],\r\n    ],\r\n];\r\n```\r\n\r\nEdit - I removed the `error => true` from the bottom pipeline group and it didn't help. Config changed to reflect that."}}
{"actor":{"display_login":"moderndeveloperllc"}}