nighthawk icon indicating copy to clipboard operation
nighthawk copied to clipboard

add a troubleshooting mode

Open eric846 opened this issue 4 years ago • 1 comments

What if Nighthawk had a mode where it tried to send only a handful of requests to the target and dumped the full output?

This would also be an opportunity to dump the full request:

  • what protocol was used
  • what IP was used
  • headers sent (e.g. tracing GUID, from command line, from custom RequestSource)

If you couldn't connect to the target, there are multiple possibilities that could be cleared up by a detailed printout. If you are getting 4xx or 5xx errors, sometimes it's interesting to look at the response headers.

Also, in some environments, a Nighthawk service is actually the only tool that has connectivity to the system under test, so this could also be used as a heavy duty ping tool while troubleshooting a testbench. To accomplish this, I have sometimes resorted to running 10 qps for 5 seconds, but the only feedback I have to work with is counters.

eric846 avatar Mar 11 '21 17:03 eric846

I can feel you here, from the experience of debugging some sni related stuff; A bit more holistic / less targeted, if we could somehow get a hold of NHs logs from a remote instance then it could help too; in local runs the logs may often show what you need (but perhaps not always, you won’t get to see a full response body for example), but a remote service has no way to propagate it back.

oschaaf avatar Mar 11 '21 18:03 oschaaf