[09:50:50] <dns|2> hi there! Could someone please help with CORS handling. I've set up CORS handler and OPTIONS request is OK (have 204 code) and browser tries to send original POST-request, but miss original request's body.
[09:51:45] <dns|2> Is this browser behaviour controlling by response headers or not? I mean ACCESS_CONTROL_ALLOW_HEADERS
[10:14:47] * ChanServ sets mode: +o purplefox [10:19:20] <temporalfox> I'm wondering why vertx-zookeeper tests takes forever to execute [10:42:50] <temporalfox> seing [10:42:51] <temporalfox> Unhandled exception [10:42:52] <temporalfox> java.lang.NullPointerException [10:42:55] <temporalfox> during these tests [12:05:08] <ivanovdns> ping guys.. Could someone rub me nose in right docs [12:10:26] <cescoffier> ivanovdns hi [12:11:13] <ivanovdns> cescoffier: hi [12:11:24] <cescoffier> so which doc are you looking for [12:11:35] <ivanovdns> [09:50:50] <dns|2> hi there! Could someone please help with CORS handling. I've set up CORS handler and OPTIONS request is OK (have 204 code) and browser tries to send original POST-request, but miss original request's body. [12:11:35] <ivanovdns> [09:51:45] <dns|2> Is this browser behaviour controlling by response headers or not? I mean ACCESS_CONTROL_ALLOW_HEADERS [12:11:43] <ivanovdns> about this [12:12:07] <cescoffier> the only doc mentioning this should be the vert.x web doc [12:12:28] <cescoffier> http://vertx.io/docs/vertx-web/java/#_cors_handling [12:12:32] <cescoffier> but we don't say much [12:12:37] <ivanovdns> I know. I've set up as mentioned there [12:12:47] <cescoffier> then it's a CORS issue (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) [12:13:16] <cescoffier> pmlopes : maybe you know where we have written this ? [13:03:36] <purplefox> temporalfox, hi julien, did you see this https://www.techempower.com/benchmarks/#section=data-r13&hw=ph&test=plaintext ? (vert.x : did not complete) [13:03:44] <temporalfox> purplefox yes [13:03:52] <temporalfox> I sent an email to the list [13:03:59] <temporalfox> that say to look at the logs whic are empty [13:04:11] <temporalfox> I run the bencharm on my mahcine and I get number [13:04:14] <temporalfox> and I rpelied [13:04:20] <temporalfox> but they remain silent [13:04:30] <temporalfox> so we don't know what happened [13:05:27] <purplefox> it's a shame they didn't give you a chance to investigate before publishing [13:06:29] <temporalfox> I just send a new message [13:06:32] <temporalfox> on the list [13:06:35] <temporalfox> perhaps you can post too [13:06:41] <temporalfox> I sent private messages [13:06:42] <temporalfox> public [13:06:50] <temporalfox> I got one private reply [13:06:58] <temporalfox> Hi Julien, [13:06:58] <temporalfox> the output logs can be found here: http://tfb-logs.techempower.com/round-13/ [13:07:01] <temporalfox> “Did not complete” used to link to the right logfile but this seems to be broken right now. [13:07:01] <temporalfox> simon [13:07:03] <temporalfox> that's all [13:07:09] <temporalfox> pmlopes also wrote on the list [13:07:22] <temporalfox> https://groups.google.com/d/msg/framework-benchmarks/2LRga8pkm6E/shRe4G97AQAJ [13:07:50] <temporalfox> we should at least know what is the reason (transparency) [13:07:59] <temporalfox> i.e the reason from the tool perspective, what happened [13:12:56] <pmlopes> @ivanovdns regarding cors, what do you mean about missing original request body? [13:16:04] <ivanovdns> pmlopes: I'd like to upload a file to server with POST request. At first chrome sends OPTIONS request and receive OK from vert.x CORS handler. After it Chrome tries to send original POST request but without file content [13:17:23] <pmlopes> just to check you do have a body handler in your route, right? [13:17:59] <ivanovdns> yes. of course [13:18:13] <ivanovdns> router.post(“/user/avatar”).handler(this::uploadImage); [13:19:04] <ivanovdns> and if (hdl.fileUploads().size() == 0) I respond about an error [13:19:43] <ivanovdns> If I check this code without CORS (IDEA REST Client) everithing is OK [13:22:14] <temporalfox> going to run CI a few times for jdbc-client with @tsegismont PR for testing failures improvements [13:22:39] <temporalfox> so zookeeper failed also on my machine with the same CI [13:22:40] <temporalfox> ZKClusteredWideMapTest>AsyncTestBase.lambda$onSuccess$1:622→ClusterWideMapTest.lambda$null$5:198→AsyncTestBase.assertNull:244 expected null, but was:<molo> [13:22:40] <temporalfox> ZKClusteredWideMapTest>AsyncTestBase.lambda$onSuccess$1:622→ClusterWideMapTest.lambda$null$0:120→AsyncTestBase.assertNull:244 expected null, but was:<molo> [13:22:54] <temporalfox> [INFO] Total time: 01:15 h [13:22:56] <temporalfox> cool [13:43:35] <pmlopes> @ivanovdns are you allowing the headers: content-length content-type and content-disposition? my guess is that some header is being blocked and netty will skip the parsing [13:44:07] <pmlopes> which headers are you allowing? [13:46:19] <ivanovdns> .allowCredentials(true) [13:46:19] <ivanovdns> .maxAgeSeconds(84600) [13:46:19] <ivanovdns> .allowedHeader(“Authorization”) [13:46:19] <ivanovdns> .allowedHeader(“Origin”) [13:46:19] <ivanovdns> .allowedHeader(“Accept”) [13:46:20] <ivanovdns> .allowedHeader(“Accept-Charset”) [13:46:20] <ivanovdns> .allowedHeader(“Accept-Encoding”) [13:46:21] <ivanovdns> .allowedHeader(“Content-Type”) [13:46:21] <ivanovdns> .allowedHeader(“Content-Length”) [13:46:22] <ivanovdns> .allowedHeader(“Content-Encoding”) [13:47:01] <ivanovdns> netty skip parsing.. but chrome does not show this body in developer tab at all! [13:47:06] <ivanovdns> is it OK? [13:47:42] <ivanovdns> I think this is a chrome issue but don't know which header controlls such behavour [13:48:25] <ivanovdns> one moment. I'll try to catch traffic by snipper and check whether body exisst or not [14:54:53] * ChanServ sets mode: +o purplefox
[18:27:09] *** ChanServ sets mode: +o purplefox
[22:26:40] <Gihad> Hey, I'm testing Vert.x and a few other modern concurrency models, I got a simple redis backed leaderboard demo application up as a test and I was able to good performance out of it but I'm not sure if I'm using the verticles in the right away
[22:27:05] <Gihad> Would someone be able to take a look at my code and give me some pointers? It's small: https://github.com/gihad/vertx_leaderboard/tree/master/src/main/java/com/uken/platform/leaderboard
[22:36:42] <Gihad> Particularly how I'm mixing the 2 verticles: the router in LeaderboardVerticle and another for the non-blocking redis calls LeaderboardWorker and also the deployment options I'm using in Application.java