On Sat, 20 Jul 2019 19:16:42 GMT, Vijay Nayar wrote:

According to the documentation for the @after UDA, we have the following:


For reference, the same error also happens when using registerRestInterface as well in vibe.web.rest, just it happens in different code.

[main(ZQhm) dbg] REST handler exception: object.Exception@../../.dub/packages/vibe-d-0.8.5/vibe-d/stream/vibe/stream/counting.d(183): Writing past end of output stream.
[main(ZQhm) dbg] ----------------
[main(ZQhm) dbg] /usr/include/dmd/phobos/std/exception.d:515 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, scope const(char)[]) [0x55a750a29a76]
[main(ZQhm) dbg] /usr/include/dmd/phobos/std/exception.d:436 pure @safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x55a750a299f2]