Signal flare: vibed.org throwing 500 errors
Tim Keating via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 23 20:11:26 PDT 2014
Mystery solved. With the debug info you enabled, I started
getting meaningful stack data:
Sorry, we got a 400 error (Bad Request) while processing this
request. We will look into this as soon as possible.
Internal error information:
object.Exception at ../vibe/source/vibe/http/server.d(1534):
Expected name=value.
----------------
./vibed-org(pure @safe bool
std.exception.enforce!(bool).enforce(bool, lazy const(char)[],
immutable(char)[], ulong)+0x6b) [0x7d9e4f]
./vibed-org(void vibe.http.server.parseCookies(immutable(char)[],
ref vibe.http.common.CookieValueMap)+0x7b) [0x98e79f]
./vibed-org(bool
vibe.http.server.handleRequest(vibe.core.stream.Stream,
vibe.core.net.TCPConnection, vibe.http.server.HTTPServerListener,
ref vibe.http.server.HTTPServerSettings, ref bool)+0xfec)
[0x98ce84]
./vibed-org(void
vibe.http.server.handleHTTPConnection(vibe.core.net.TCPConnection,
vibe.http.server.HTTPServerListener)+0x17e) [0x98bdb6]
./vibed-org(void
vibe.http.server.listenHTTPPlain(vibe.http.server.HTTPServerSettings).doListen(vibe.http.server.HTTPServerSettings,
vibe.http.server.HTTPServerListener,
immutable(char)[]).__lambda4(vibe.core.net.TCPConnection)+0x2c)
[0x98bac8]
./vibed-org(void vibe.core.drivers.libevent2_tcp.onConnect(int,
short, void*).ClientTask.execute()+0x4d4) [0x8f678c]
./vibed-org(_D4vibe4core4core27__T16makeTaskFuncInfoTDFZvZ16makeTaskFuncInfoFNbDFZvZS4vibe4core4core12TaskFuncInfo12callDelegateFPS4vibe4core4core12TaskFuncInfoZv+0xdb)
[0x8e1727]
./vibed-org(void vibe.core.core.CoreTask.run()+0x173) [0x8ddb7f]
./vibed-org(void core.thread.Fiber.run()+0x2a) [0xa530ee]
./vibed-org(fiber_entryPoint+0x61) [0xa52ff9]
[(nil)]
1534 here looks like the enforce in line 1537 in the current
HEAD. That's a cookie parsing error, so possibly I got a
corrupted write to local storage or something & ended up with a
malformed cookie. To test, I cleared cookies for the site, and
voila!
I will say that possibly the whole site shouldn't barf if you get
a bad cookie, though :-)
Thanks for the help!
TK
TK
More information about the Digitalmars-d
mailing list