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

Post data conflict: params and text must be equal if both are provided #50

Closed
clem4962 opened this issue Aug 19, 2020 · 1 comment
Closed

Comments

@clem4962
Copy link

When POST data contains both "params" and "text", there is a check for their equivalence in validate/postData.js

This fails when escaped characters exist in the text data, as below.

Problem can be worked around by removing the check (does it have any purpose?)

        "params": [
          {
            "name": "page",
            "value": "SandBox"
          },
          {
            "name": "wikimarkup",
            "value": "line 1"
          }
        ],
        "text": "page=SandBox&wikimarkup=line%201"

Output from hacked version of code, having added this to error block:

  console.log(seralizeURLSearchParams(node.params))
  console.log(node.text)

har-to-k6 buggy.har -o buggy.js
Converting 'buggy.har'
page=SandBox&wikimarkup=line 1
page=SandBox&wikimarkup=line%201
Error converting archive:
Post data conflict (0): params and text must be equal if both are provided

buggy.har.gz

@allansson
Copy link
Contributor

This issue has been fixed in #45. It will be released in the next version, probably later this week.

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