Hey, we are getting a strange message when trying ...
# pact-broker
g
Hey, we are getting a strange message when trying to upload the consumer pact. This seems to happen when master has the same hash as a release branch. [ERROR] Got an invalid notices value from the Pact Broker: Expected an array, got Null Failed - Request to path 'https://*redacted*/contracts/publish' failed with response 500 {"error":{"message":"source sequence is illegal/malformed utf-8","reference":"ysJCZaBRKy"}}
b
I’d say you had a non-utf 8 character in your pact or pact details.
without the actual pact and logs of the actual request, I can’t help you
g
is this what it would look like?
Copy code
"includes": [
  "\u493B\u62B5\uC318\u6BE1"
],
Resolved the issue. So basically, the matchQuery regexp was generating a random example that contained some non-UTF-8 characters.
👍🏼 1
b
random data is no good in pacts.
make sure you give hardcoded examples each time, or it will look like your pact has changed every time you publish, and you’ll be running a lot of unnecessary verification builds.
g
That's a good point actually. I think we are not doing that.