Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid JSON-Data Value #36

Closed
naveenn2n opened this issue Apr 29, 2020 · 4 comments
Closed

Invalid JSON-Data Value #36

naveenn2n opened this issue Apr 29, 2020 · 4 comments

Comments

@naveenn2n
Copy link

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.

@KissPeter
Copy link
Owner

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

@naveenn2n
Copy link
Author

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

KissPeter added a commit that referenced this issue May 3, 2020
@KissPeter
Copy link
Owner

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

@naveenn2n
Copy link
Author

Thanks @KissPeter. It's working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants