matusf / openapi-fuzzer

Black-box fuzzer that fuzzes APIs based on OpenAPI specification. Find bugs for free!
GNU Affero General Public License v3.0
526 stars 22 forks source link

Error: No such file or directory (os error 2) #14

Closed snow-jallen closed 2 years ago

snow-jallen commented 2 years ago

I tried running docker run --rm -it rust

Then running cargo install openapi-fuzzer

Then running openapi-fuzzer --url http://localhost/swagger --spec http://localhost/swagger/v1/swagger.json

But I just get back Error: No such file or directory (os error 2)

...Not particularly helpful, but I'm not sure where to go from here. As far as I can tell I'm doing what the docs said to do.

matusf commented 2 years ago

The --spec option takes a file as an argument not an url.

snow-jallen commented 2 years ago

Thank you, that did the trick. I guess that just wasn't clear to me in the docs, I appreciate the clarification.

matusf commented 2 years ago

No problem. I'll try to improve the help message & docs.