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

local graphql query failing #291

Closed beardedeagle closed 6 years ago

beardedeagle commented 6 years ago

Question

~/Projects/test > cat targets.txt
GET http://127.0.0.1:8080/graphql
Content-Type: application/json
@/Users/USER/Projects/test/query.json

 ~/Projects/test > cat query.json
'{"query": "{ human(id: \"1234\") { id appearsIn name homePlanet } }"}'

 ~/Projects/test > vegeta attack -rate=10 -duration=30s -targets=targets.txt | vegeta report

And all that does is get me 404's because it keeps sending the request to 127.0.0.1:57132 or some other random port. Not sure what the issue is here.

beardedeagle commented 6 years ago

Belay that. I figured out the issue.