-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
[V3] body is modified to JSON object even for non-JSON data (regression in 10.0.0-beta.60) #884
Comments
It seems like this is working now @individual-it - are you able to confirm? The tests with that PR are definitely green, and it looks like the body is correct. |
So it looks like the test was failing, but This is a build from master showing the failing verification from a build log https://github.com/pact-foundation/pact-js/runs/8017993797?check_suite_focus=true#step:4:6991 This is a comment and hack in to make the verification pass, and way to repro the issue here is the passing test, with the above code in https://github.com/pact-foundation/pact-js/runs/8024802481?check_suite_focus=true#step:4:9656 |
@mefellows sorry for the late reply I have been pretty busy last month
|
this bug is still persist in version of pack-js 10.4.0 |
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-786). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps. |
I can confirm this is still happening on |
Thanks for confirming. We still need to investigate if the issue is in Pact JS or in the upstream FFI - any help on that would be welcome to help us progress this. |
Software versions
Please provide at least OS and version of pact-js
Issue Checklist
Please confirm the following:
Expected behaviour
when using
Content-Type: application/x-www-form-urlencoded
the data in the body would be send as it isActual behaviour
data is encoded into a JSON object
an interaction like
results in this request to the provider
Steps to reproduce
"Content-Type": "application/x-www-form-urlencoded"
reproducible example: https://github.com/pact-foundation/pact-js/pull/883/files
the test 'creates a new mate with application/x-www-form-urlencoded data' works with
10.0.0-beta.59
but fails with10.0.0-beta.60
because the data is not urlencoded but wrapped into a JSON objectThe text was updated successfully, but these errors were encountered: