{"action":"opened","issue":{"url":"https://api.github.com/repos/NancyFx/Nancy/issues/1858","labels_url":"https://api.github.com/repos/NancyFx/Nancy/issues/1858/labels{/name}","comments_url":"https://api.github.com/repos/NancyFx/Nancy/issues/1858/comments","events_url":"https://api.github.com/repos/NancyFx/Nancy/issues/1858/events","html_url":"https://github.com/NancyFx/Nancy/issues/1858","id":60141379,"number":1858,"title":"Async Request returns 500 internal server error...","user":{"login":"Healian","id":6691718,"avatar_url":"https://avatars.githubusercontent.com/u/6691718?v=3","gravatar_id":"","url":"https://api.github.com/users/Healian","html_url":"https://github.com/Healian","followers_url":"https://api.github.com/users/Healian/followers","following_url":"https://api.github.com/users/Healian/following{/other_user}","gists_url":"https://api.github.com/users/Healian/gists{/gist_id}","starred_url":"https://api.github.com/users/Healian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Healian/subscriptions","organizations_url":"https://api.github.com/users/Healian/orgs","repos_url":"https://api.github.com/users/Healian/repos","events_url":"https://api.github.com/users/Healian/events{/privacy}","received_events_url":"https://api.github.com/users/Healian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T18:44:18Z","updated_at":"2015-03-06T18:44:18Z","closed_at":null,"body":"i am trying to use nancy to handle ajax calls from javascript where i created an asynchronous request handler like so\r\n\r\n            Post[\"/game_login.html\", true] = async (o, x) => {\r\n                var username = Request.Form.Username;\r\n                var password = Request.Form.Password;\r\n                var world = Request.Form.World;\r\n                var domain = Request.Form.Domain;\r\n                var proxyUsername = Request.Form.ProxyUsername;\r\n                var proxyPassword = Request.Form.ProxyPassword;\r\n                var proxyServer = Request.Form.ProxyServer;\r\n                var token = (username + password + domain + world).GetMd5Hash();\r\n\r\n                var robot = new Robot {\r\n                    Owner = new RobotOwner {\r\n                        Token = token\r\n                    }\r\n                };\r\n                \r\n                if (await robot.Initialize(username, password, new Realm(world, domain), new Proxy {\r\n                    Username = proxyUsername,\r\n                    Password = proxyPassword,\r\n                    Server = proxyServer\r\n                })) {\r\n                    Robots.Add(robot);\r\n                    return (Response)token;\r\n                }\r\n\r\n                return (Response)\"\";\r\n            };\r\n\r\nhowever when the user calls it it returns 500 internal server error immediately any help?"}}