Hello, I have a problem with the pact broker, that...
# pact-broker
r
Hello, I have a problem with the pact broker, that I cannot solve. 😞 Anyone seen similar issue? When I run this:
Copy code
docker run --rm -v /${PWD}:/${PWD} -w ${PWD} \
    -e PACT_BROKER_BASE_URL=xxxxx \
    -e PACT_BROKER_TOKEN=xxxx \
    pactfoundation/pact-cli:latest \
    pactflow publish-provider-contract \
    /Users/xxxx/PycharmProjects/XD_ContractTesting_Provider/bi_directional/provider.yaml \
    --provider "example-provider" \
    --provider-app-version=1.0.0 \
    --content-type=application/yaml \
    --verification-exit-code=0 \
    --verification-results /Users/xxxx/PycharmProjects/XD_ContractTesting_Provider/bi_directional/oas_generated.txt \
    --verification-results-content-type text/plain
I get the following:
Copy code
Error making request to <https://radektest.pactflow.io/provider-contracts/provider/example-provider/publish> status=400 {"title":"Validation errors","type":"<https://problems-registry.smartbear.com/validation-error>","status":400,"instance":"/","errors":[{"detail":"must be filled","pointer":"#/contract/selfVerificationResults/content"},{"detail":"is missing","pointer":"#/contract/selfVerificationResults/verifier"}]}
(python) rstolarc@KKVND7XCRQ XD_ContractTesting_Provider %
m
Looks like you’re missing the
--verifier
arg
🙌 1
r
Thank you !
m
I could be wrong. It seems to be complaining about the “content” also, but looking at you’re providing a file