RejectedSoftware Forums

Sign up

Suddenly the following Error, dont't know why?

400 - Bad Request

Please give any hint!

Bad Request

Internal error information:
object.Exception@../../.dub/packages/vibe-d-0.8.0/vibe-d/stream/vibe/stream/operations.d(365): Reached maximum number of bytes while searching for end marker.

/usr/include/dmd/phobos/std/exception.d:420 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, const(char[])) [0x8260e2]
/usr/include/dmd/phobos/std/exception.d:388 pure @safe bool std.exception.enforce!(Exception, bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x82605e]
../../.dub/packages/vibe-d-0.8.0/vibe-d/stream/vibe/stream/operations.d:364 @safe void vibe.stream.operations.readUntilSmall!(vibe.utils.array.AllocAppender!(ubyte[], ubyte).AllocAppender, ....

Re: Suddenly the following Error, dont't know why?

On Tue, 29 Aug 2017 14:01:09 GMT, Martin Tschierschke wrote:

400 - Bad Request

Please give any hint!

Bad Request

Internal error information:
object.Exception@../../.dub/packages/vibe-d-0.8.0/vibe-d/stream/vibe/stream/operations.d(365): Reached maximum number of bytes while searching for end marker.

After trying a minimal vibe.d project (hello world) example, I figured out, that my service at 10.0.0.1:8030 was not working but using localhost:8030 it worked as before. Something at the http stack of our server changed, but I don't know what yet.

Re: Suddenly the following Error, dont't know why?

Am 29.08.2017 um 16:01 schrieb Martin Tschierschke:

400 - Bad Request

Please give any hint!

Bad Request

Internal error information:
object.Exception@../../.dub/packages/vibe-d-0.8.0/vibe-d/stream/vibe/stream/operations.d(365): Reached maximum number of bytes while searching for end marker.

/usr/include/dmd/phobos/std/exception.d:420 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, const(char[])) [0x8260e2]
/usr/include/dmd/phobos/std/exception.d:388 pure @safe bool std.exception.enforce!(Exception, bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x82605e]
../../.dub/packages/vibe-d-0.8.0/vibe-d/stream/vibe/stream/operations.d:364 @safe void vibe.stream.operations.readUntilSmall!(vibe.utils.array.AllocAppender!(ubyte[], ubyte).AllocAppender, ....

Can you post the next few lines following in the stack trace? I'd guess
that there is some line in the request header that exceeds
MaxHTTPHeaderLineLength, which is currently hard-coded as 4096
(usually plenty enough).