Here we can find common issues and how to solve them.
An example error might look like this:
The problem is that there is no
Content-Type being sent through to inform the underlying validation library how to compare requests/response. In this case, it defaults to
text/plain which is sensitive to differences.
You likely want
application/json or similar, to compare JSON payloads e.g.
See https://github.com/pact-foundation/pact-go/issues/15 for background.