-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error content not displayed #1
Comments
Just for information I'm using middleman as dispatcher. And I'm facing the same issue using the dispatcher from Middlewares\Utils |
Middleman is using an old version of the PSR-15 interface (
|
Hi, I used the dispatcher from Middleware\Utils but same result. I've already added a break after each case (not in the version I copied / pasted here sorry) Into my app I just do: Do I have to do anything else to emit the response ? I thought the dispatcher handled that. |
Nop, the dispatcher returns the response but does not output the content to the browser. If you're using diactoros, it provides some emitters, depending of your needs. For example: $emitter = new Zend\Diactoros\Response\SapiEmitter();
$emitter->emit($response); |
Thank you for all your job and for your answer. |
Hi,
I set this middleware at the top of the stack, The errors and exception are well intercepted (I saw them into my Logger) but my response content is not displayed.
I use the following code:
( new Middlewares\ErrorHandler( 'App::errorHandler' ) )->catchExceptions( true ),
And my handler is like
What am I doing wrong ?
The text was updated successfully, but these errors were encountered: