Skip to content
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

error replying to my own post #34

Open
extrawurst opened this issue Oct 30, 2015 · 1 comment
Open

error replying to my own post #34

extrawurst opened this issue Oct 30, 2015 · 1 comment

Comments

@extrawurst
Copy link

500 - Internal Server Error

Internal Server Error

Internal error information:
object.Exception@../vibe/source/vibe/utils/dictionarylist.d(154): Accessing non-existent key 'email'.
----------------
./vibenews(pure @safe bool std.exception.enforce!(Exception, bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong)+0x6b) [0x8cc6bb]
./vibenews(vibe.utils.dictionarylist.DictionaryList!(immutable(char)[], true, 16uL).DictionaryList.opIndexinout(pure @safe inout(immutable(char)[]) function(immutable(char)[]))+0x78) [0x8a2ce8]
./vibenews(void vibenews.web.WebInterface.postArticle(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse)+0x196) [0x9d8286]
./vibenews(_D4vibe4http6router9URLRouter13handleRequestMFC4vibe4http6server17HTTPServerRequestC4vibe4http6server18HTTPServerResponseZ21__T9__lambda3TmTAAyaZ9__lambda3MFmMAAyaZv+0x219) [0xa8a5a5]
./vibenews(const(void function(immutable(char)[], scope void delegate(ulong, scope immutable(char)[][]))) vibe.http.router.MatchTree!(vibe.http.router.Route).MatchTree.doMatch+0x196) [0x8c82de]
./vibenews(void vibe.http.router.MatchTree!(vibe.http.router.Route).MatchTree.match(immutable(char)[], scope void delegate(ulong, scope immutable(char)[][]))+0x66) [0x8c7ba6]
./vibenews(void vibe.http.router.URLRouter.handleRequest(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse)+0x163) [0xa8a317]
./vibenews(bool vibe.http.server.handleRequest(vibe.core.stream.Stream, vibe.core.net.TCPConnection, vibe.http.server.HTTPListenInfo, ref vibe.http.server.HTTPServerSettings, ref bool)+0x184f) [0xafbf0b]
./vibenews(void vibe.http.server.handleHTTPConnection(vibe.core.net.TCPConnection, vibe.http.server.HTTPListenInfo)+0x1b3) [0xafa5b7]
./vibenews(void vibe.http.server.listenHTTPPlain(vibe.http.server.HTTPServerSettings).doListen(vibe.http.server.HTTPListenInfo, bool).__lambda3(vibe.core.net.TCPConnection)+0x36) [0xaf9f9e]
./vibenews(void vibe.core.drivers.libevent2_tcp.ClientTask.execute()+0x4b8) [0xadb84c]
./vibenews(void vibe.core.core.makeTaskFuncInfo!(void delegate()).makeTaskFuncInfo(ref void delegate()).callDelegate(vibe.core.core.TaskFuncInfo*)+0x72) [0x97a792]
./vibenews(void vibe.core.core.CoreTask.run()+0x12e) [0xa41f06]
./vibenews(void core.thread.Fiber.run()+0x2a) [0xb89a62]
./vibenews(fiber_entryPoint+0x61) [0xb89951]
[(nil)]
@s-ludwig
Copy link
Member

s-ludwig commented Nov 2, 2015

My guess is that you got logged out while the message authoring page was open. This would mean that the name/email fields were not there and the subsequent non-authenticated send failed in the above way.

Plan for improvement:

  • Always set (hidden) name/email fields - this would result in a better error message, such as "Must be logged in to post using the given e-mail address"
  • Instead of displaying a stand-along error page, output the error message on the authoring page and retain the message contents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants