{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/157","repository_url":"https://api.github.com/repos/vert-x3/vertx-examples","labels_url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/157/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/157/events","html_url":"https://github.com/vert-x3/vertx-examples/issues/157","id":177572476,"number":157,"title":"java.util.concurrent.TimeoutException while POST-request with form-data","user":{"login":"white-collar","id":1407777,"avatar_url":"https://avatars.githubusercontent.com/u/1407777?v=3","gravatar_id":"","url":"https://api.github.com/users/white-collar","html_url":"https://github.com/white-collar","followers_url":"https://api.github.com/users/white-collar/followers","following_url":"https://api.github.com/users/white-collar/following{/other_user}","gists_url":"https://api.github.com/users/white-collar/gists{/gist_id}","starred_url":"https://api.github.com/users/white-collar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/white-collar/subscriptions","organizations_url":"https://api.github.com/users/white-collar/orgs","repos_url":"https://api.github.com/users/white-collar/repos","events_url":"https://api.github.com/users/white-collar/events{/privacy}","received_events_url":"https://api.github.com/users/white-collar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-17T12:12:03Z","updated_at":"2016-09-17T18:34:32Z","closed_at":null,"body":"Hello.\r\n\r\nI have extremely simple handler to get post form data and perform:\r\n\r\n```\r\n router.route().handler(BodyHandler.create());\r\n router.post(\"/user/signup\").handler(routingContext -> {\r\n            System.out.println(routingContext.getBodyAsString());\r\n        });\r\n```\r\n\r\nProblem:\r\n\r\nIf i use JavaScript post-query via Jquery with form-encoded json-data - handler executes without problen and I see the debug-string.\r\n\r\nHowever if I use test method:\r\n\r\n```\r\n @Test\r\n    public void testServerUserRegister(TestContext context) {\r\n\r\n        Async async = context.async();\r\n        HttpClient client = vertx.createHttpClient();\r\n        HttpClientRequest request = client.post(8080, \"localhost\", \"/user/signup\", response -> {\r\n            System.out.println(\"Some callback \" + response.statusCode());\r\n            async.complete();\r\n\r\n        });\r\n        String body = \"{'username':'www','password':'www'}\";\r\n        request.putHeader(\"content-length\", \"1000\");\r\n        request.putHeader(\"content-type\", \"application/x-www-form-urlencoded\");\r\n        request.write(body);\r\n        request.end();\r\n```\r\nI always get exception:\r\n\r\n```\r\nвер. 17, 2016 3:06:18 PM io.vertx.core.http.impl.HttpClientRequestImpl\r\nSEVERE: io.vertx.core.VertxException: Connection was closed\r\n\r\njava.util.concurrent.TimeoutException\r\n\tat io.vertx.ext.unit.impl.TestContextImpl.lambda$run$4(TestContextImpl.java:138)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/comments/247796219","html_url":"https://github.com/vert-x3/vertx-examples/issues/157#issuecomment-247796219","issue_url":"https://api.github.com/repos/vert-x3/vertx-examples/issues/157","id":247796219,"user":{"login":"white-collar","id":1407777,"avatar_url":"https://avatars.githubusercontent.com/u/1407777?v=3","gravatar_id":"","url":"https://api.github.com/users/white-collar","html_url":"https://github.com/white-collar","followers_url":"https://api.github.com/users/white-collar/followers","following_url":"https://api.github.com/users/white-collar/following{/other_user}","gists_url":"https://api.github.com/users/white-collar/gists{/gist_id}","starred_url":"https://api.github.com/users/white-collar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/white-collar/subscriptions","organizations_url":"https://api.github.com/users/white-collar/orgs","repos_url":"https://api.github.com/users/white-collar/repos","events_url":"https://api.github.com/users/white-collar/events{/privacy}","received_events_url":"https://api.github.com/users/white-collar/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T18:34:32Z","updated_at":"2016-09-17T18:34:32Z","body":"Sorry. closed."}}
{"actor":{"display_login":"white-collar"}}