It looks like something was changed in the last ve...
# pact-js
m
It looks like something was changed in the last version our
pact_verify
setup broke. In prev. version
pact-js
used to publish based on env variable
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
. In the latest version(pact-core: 13.7.8, pact: 10.1.2) option needs to be specified manually in pact config
publishVerificationResult: process.env.PACT_BROKER_PUBLISH_VERIFICATION_RESULTS === 'true'
However, now it leads to errors as even after specifying
PACT_BROKER_URL
pact cannot publish results. See logs in thread
👍 1
Publishing of verification results failed with an error: Link/Resource was not found - Request to pact broker path ‘/pacticipants/conpago-backend-nodejs’ failed: 404 Not Found. URL: ’https://conpago.pactflow.io/pacts/provider/conpago-backend-nodejs/consumer/conpago-re
Looks like pact is trying to publish to PACT_URL instead of using PACT_BROKER_URL
m
Hi @Maxim Filimonov, looks like you’re running into: https://github.com/pact-foundation/pact-net/issues/417. I’ll get support for
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
in the next version of the core, thanks for spotting this
When the upstream issue is fixed, i’ll get a fix for it out ASAP.
m
Thanks @Matt (pactflow.io / pact-js / pact-go) will be testing as it as it out
It does seem that there are some issue with new validation
When I get publish to work I cannot specify pactBrokerUrl as it requires provider.
But when I’m using pactUrls there should be no need to specify provider I’m not correct?
m
That's true I think. So the issue is the constraints, it should allow you to publish if provider and the broker URL is not set, only if pact urls is set
Could you please raise a ticket?
m
right i removed pactBrokerUrl and it seem to be working now
👍 1
just specify pactUrl - I think I was following prev examples.
m
Ahh ok. The older lib probably wasn't quite as strict with the validation. Let me know if you do encounter other issues and we'll fix them ASAP
🙏 1
m
Its working for us now, thanks for the quick fix
🙌 1
m
You’re welcome