-
Notifications
You must be signed in to change notification settings - Fork 284
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
vibe/http/server.d(875): AssertionError "A void body was already written!" #821
Comments
A solution could be to add a |
That would in general corrupt the HTTP protocol. The only safe solution would be to add an |
Does What will happen if the suggested condition is added and |
This is the exception thrown on the first call of
For this case, it will be OK to just log the error and give-up the The clean solution would be that at |
This occurs because
HTTPServerResponse.writeJsonBody
must not be called more than once per instance.Anyhow in the following code section (vibe/web/rest.d:540-561)
HTTPServerResponse.writeJsonBody
is called second time in thecatch
block, when an exception is thrown during the first call in thetry
block.The text was updated successfully, but these errors were encountered: