How do I capture vert.x http requests/responses?

638 views
Skip to first unread message

JasonP

unread,
Nov 11, 2013, 9:55:09 AM11/11/13
to ve...@googlegroups.com
I'm trying to debug a little vert.x webservice I'm working on.  I keep getting 400 (Bad Request) errors on a particular post request, but only during integration testing - if I runzip the packaged module, everything works fine.  I figure the request is getting mangled somehow, and I'd like to see it in Fiddler.  Does anyone know how to set up Fiddler/vert.x to capture traffic from a verticle? Or failing that, what other tools do you recommend to capture http traffic (on windows)?

Thanks,
Jason

Mumuney Abdlquadri

unread,
Nov 12, 2013, 3:17:49 AM11/12/13
to ve...@googlegroups.com
is https://github.com/kuujo/via useful?
> --
> You received this message because you are subscribed to the Google Groups
> "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vertx+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

JasonP

unread,
Nov 12, 2013, 7:58:07 AM11/12/13
to ve...@googlegroups.com, abdlq...@googlemail.com
This looks like an interesting tool, but not really what I'm looking for.  I'm not trying to control a set of verticles - I'm just trying to make sure a single verticle is POSTing what I intended.  I'll probably just redirect the POST to another verticle that logs incoming requests.  I would have preferred to use Fiddler, but I can't find a way to make it pick up traffic from my verticle.

On Tuesday, November 12, 2013 3:17:49 AM UTC-5, Mumuney Abdlquadri wrote:
is https://github.com/kuujo/via useful?

Tom Carchrae

unread,
Nov 12, 2013, 8:07:47 AM11/12/13
to ve...@googlegroups.com
Are you using RouteMatcher?  If so, why not override the handle method (eventually calling super.handle).  Then you can add whatever debug/log statements you need.






JasonP

unread,
Nov 12, 2013, 9:39:59 AM11/12/13
to ve...@googlegroups.com, t...@carchrae.net
Unfortunately, I'm not using RouteMatcher here...  This verticle is trying to send a POST request to the REST interface of another application.  Since none of it is in production yet, I was testing my verticle by communicating with the actual application.  The interesting thing is that if I deploy the verticle from an integration test, the other app always returns a 400 error (bad request, invalid verb) when I send a particular POST request.  But if I package the exact same code and run it outside the IDE, it all works.  I would have preferred to make Fiddler work, but I think my easiest/fastest approach to figuring out what is going on is to just install Wireshark and see what's being sent.  It'll probably turn out to be some silly mistake on my part...
Reply all
Reply to author
Forward
0 new messages