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

Generate code doesn't work if there are query parameters #21

Closed
ckazimie opened this issue Apr 15, 2021 · 2 comments
Closed

Generate code doesn't work if there are query parameters #21

ckazimie opened this issue Apr 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ckazimie
Copy link

When I choose Generate code for a request containing a query parameter it fails with this error:
HARError: validation failed
Version 2.3.0

It doesn't matter what is the target platform generate it for
Example

GET http://abc.com/a?b=c

ERROR: http://abc.com/a?b=c
{
"url": "http://abc.com/a?b=c",
"method": "GET",
"http2": true,
"headers": {
"User-Agent": "httpyac"
},
"cookieJar": {
"version": "tough-cookie@4.0.0",
"storeType": "c",
"rejectPublicSuffixes": true,
"cookies": []
},
"followRedirect": true
}
ERROR: HARError - validation failed
HARError: validation failed

@AnWeber AnWeber added the bug Something isn't working label Apr 15, 2021
AnWeber added a commit that referenced this issue Apr 15, 2021
@AnWeber
Copy link
Owner

AnWeber commented Apr 15, 2021

The name of the query string parameter in the HAR request is name and not key. The error is fixed with the new version.

@ckazimie
Copy link
Author

Version 2.4.0 works very well now. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants