-
Notifications
You must be signed in to change notification settings - Fork 98
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
Can't set headers after they are sent. #255
Comments
We are also having this issue. It appears to only affect the last listed method in the controller class. I have found 2 workarounds but these go against the documentation of calling Workaround 1 (throw the error, seems a bit pointless try/catch to throw, but you may want to manipulate the error before you send it up):
Workaround 2 (utilise the Promises):
We haven't been able to figure out where the problem lies but it could be something to do with the decorators. |
@dcavanagh is anyone still maintaining inversify and other subpackages ? |
@PodaruDragos I have very recently been added as maintainer and I am going to start working through the backlog |
Will there be an actual solution? I found that throwing an error works fine but not calling next |
Any update on this? The error handler doesn't seems to be working for me too. |
I'm having the same issue. I have this configuration to handle some method error with
The error in the console is |
I'm having a super weird issue as well with this... To give some context, This is my implementation of overriding the default error handler:
I have the following endpoint, let's call it
and then just below I have this empty endpoint, let's call this
If I have both As soon as I remove
I have no idea what is happening... |
I confirm the reports from @nref-dan and @Mannydheer Would be great to see some updates on this problem |
Hi. I decided to try an example. But on the request I get 204 code and an error in the logs. How I understand it before my error handler, some other one works.
The text was updated successfully, but these errors were encountered: