Hi, I'm facing the below issue while publishing th...
# general
s
Hi, I'm facing the below issue while publishing the pact json :
Copy code
Publishing 'ppe-service-bus-issue-compilation-ppe-service-ent-issue-compilation.json' ... FAILED! 409 Conflict - {"error":"Cannot change the content of the pact for ppe-service-bus-issue-compilation version 1.0.0 and provider ppe-service-ent-issue-compilation, as race conditions will cause unreliable results for can-i-deploy. Each pact must be published with a unique consumer version number. For more information see <https://docs.pact.io/go/versioning>"}
I'm not sure why it is failing and the same json file is getting verified when the run the provider from my local machine pointing to the json file. Any idea?
m
The error in the output is quite clear. You need to use a unique version each time you publish a pact
Otherwise you can invalidate previous results
see also https://docs.pact.io/pact_broker/advanced_topics/troubleshooting#409-when-publishing-a-pact. Also, please avoid cross posting unless there is a reason the community would benefit from it. A lot of the maintainers are based in different timezones, and will help you if/when they can.