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
PACT generated files doesn't escape generated strings #1651
Comments
Are you able to provide a Pact file or test code that exhibits this behavior? |
/jira ticket |
👋 Thanks, Jira [PACT-547] ticket created. |
From the error message |
We are PACT consumer, trying to publish to Pact production environment |
Ok, I meant is it a hosted Pact OSS broker, or Pactflow. Also, can you please provide one of the Pact files that are failing. |
Yes its hosted to OSS broker |
{ |
@Pact(provider = "system-adapter", consumer = "mobile-adapter")
|
I am unable to replicate this, using 4.1.41 and the latest Pact broker. Using both the provided Pact file and test code, I can see the following in the logs:
Just a note about using For example, |
Hello,
I am one of the PACT consumer, our current version of pact is 4.1.41,
It generates random strings (as example) to match the specified pattern and for some reason when it serializes those example string, it generates invalid sequence,
It doesn't escape those strings above 4.0.x version that's the reason we don't see this issue before.
we are getting below error
[ERROR] PUT JSON request failed with status HTTP/1.1 500 Internal Server Error
Failed - Request failed with HTTP/1.1 500 Internal Server Error
{"error":{"message":"source sequence is illegal/malformed utf-8","reference":"HjPEylMxlF"}}
The text was updated successfully, but these errors were encountered: