pact-foundation/pact_broker-client

pact broker create version tag failed

Closed this issue · 2 comments

Getting ProcessException while creating version for provider:

Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/bin/docker run --volume /opt/bamboo_agent/xml-data/build-dir/BUILD:/data --workdir /data --rm -e PACT_BROKER_PASSWORD=******** -e PACT_BROKER_USERNAME=******** -e PACT_BROKER_BASE_URL=[url]/ pactfoundation/pact-cli:latest broker create-version-tag --pacticipant svc-product-service --version 1.2.0+2e3ab4d --tag master --tag 1.2.0+2e3ab4d --verbose

"GET /pacticipants/svc-product-service/versions/1.2.0%2B2e3ab4d HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nUser-Agent: Ruby\r\nAuthorization: Basic bnVsbDpudWxs\r\nConnection: close\r\nHost: [url]\r\n\r\n"
error 29-Jul-2022 06:50:29 -> "HTTP/1.1 404 Not Found\r\n"

404 means the pacticipant version does not exist. If you are trying to create the version at the same time as the tag, then you will need to use --auto-create-version. See the docs here.

By the way, your username and password can be reverse engineered from the Basic authorization header, so you probably want to rotate those credentials now.