KissPeter / APIFuzzer

Fuzz test your application using your OpenAPI or Swagger API definition without coding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid JSON-Data Value

naveenn2n opened this issue · comments

After utilizing fuzzer, am getting invalid json data value. While passing the
fuzzer.py: error: argument --headers: invalid json_data value: '[{Authorization:'

Constructed payload.
python fuzzer.py -s test/swagger.json -u http://muurl --headers [{"Authorization": "Placed Valid Token"}] -r /tmp/reports/ --log debug

Due to privacy issues, haven't pasted url and token.

hi what about --headers '[{"Authorization": "Placed Valid Token"}]' with ' around the value?
I assume value after space is recognised as different argument.

Hi Kiss,
I tried different way of passing. Removing spaces, Single quotes, Doubles Quotes etc., But getting same error everytime.

Hi,
I've added tests to cover this functionality, seems working. Maybe it is cauased by your environment.
Please do the following

Thanks @KissPeter. It's working fine.