Code Monkey home page Code Monkey logo

Comments (6)

tsenart avatar tsenart commented on May 19, 2024

@davideicardi: That's what happens. Errors are drawn as red, otherwise green.

from vegeta.

davideicardi avatar davideicardi commented on May 19, 2024

I'm executing the following command:

echo "GET http://httpstat.us/500" | vegeta attack -duration=10s -rate=2 | tee results.bin | vegeta report -reporter=plot > plot.html

The page always return a 500 http code, but I get only a single green line. I'm doing something wrong?
Maybe I missing something...sorry I'm new to GO lang.

from vegeta.

tsenart avatar tsenart commented on May 19, 2024

This was a bug. Thanks for finding it and reporting! https://github.com/tsenart/vegeta/releases/tag/v5.5.1

from vegeta.

davideicardi avatar davideicardi commented on May 19, 2024

Thanks very much for your prompt response and fix!

Unfortunately I think that there is one more little problem: often pages that return 500 also return complex HTML error pages. For example:

Other times the page is empty:

With your last commit you write the body of the page as the error, correct me if I'm wrong. But this can a problem because it is a waste of memory, the message is a complex HTML difficult to read or worst an empty message that potentially can cause the page to be considered OK by the reporter.

My suggestion is to just put the HTTP status or description like "HTTP error 500".

What do you think?

I will be happy to submit a pull request but I never written a line with golang...

thanks!
Davide

from vegeta.

tsenart avatar tsenart commented on May 19, 2024

That was indeed an oversight. Thanks for your diligence. https://github.com/tsenart/vegeta/releases/tag/v5.5.2

from vegeta.

davideicardi avatar davideicardi commented on May 19, 2024

Perfect! Thank you!

from vegeta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.