Hi Ronald,
I get this error sometimes when I run pact verification.
For eg the build failed this morning:
Verifying a pact between oag_consumer_es_industry and ElasticSearchCarProvider
[Using file D:\programs\JenkinsSlave\workspace\Trade API Tests\TradeApiTests\target\pacts\OneAutoGate-Elastic Industry Search.json]
:pactVerify_ElasticSearchCarProvider FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':pactVerify_ElasticSearchCarProvider'.
> com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x22
at [Source: D:\programs\JenkinsSlave\workspace\Trade API Tests\TradeApiTests\target\pacts\OneAutoGate-Elastic Industry Search.json; line: 49, column: 44]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Looks like sometimes the consumer test is generating some non-UTF8 chars.
Thanks.
Chuan