tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.51k stars 1.36k forks source link

sending json body causing invalid character 'ï' looking for beginning of value #328

Closed ankushsb closed 6 years ago

ankushsb commented 6 years ago

Version and Runtime

Version: cli/v11.0.0
Commit: 6eef4b1ad4cb4a0318f031d517eeb232473d7955
Runtime: go1.10.3 darwin/amd64
Date: 2018-08-19T22:09:51Z+0100

The following command causes the go http server to give an error: "invalid character 'ï' looking for beginning of value"

echo "POST http://localhost" | vegeta attack -duration=1s -rate=1 -body=request.json | tee results.bin | vegeta report
ankushsb commented 6 years ago

caused by a corrupted file.