I am having an issue with publishing verification ...
# general
h
I am having an issue with publishing verification results because the tag and version don't exist on the broker yet:
Copy code
<- "PUT /pacticipants/battery-api/versions/8d80c2b631939740976bcbf27f05049b86a16dcc/tags/ HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: <http://pact.dev.ieu.intelematics.club|pact.dev.ieu.intelematics.club>\r\nContent-Length: 0\r\n\r\n"
<- ""
-> "HTTP/1.1 404 Not Found\r\n"
Can't it create these dynamically?
m
It should create the tag on the version dynamically. That’s what I think that
PUT
is doing. But the URL looks suspect. It has a 0 length content (i.e. no body) so I’d expect the tag to be the last segment in the URL, but it’s missing. My guess is that you haven’t populated the tag value correctly
Can you please add
--verbose
or
DEBUG
level logs, and share the redacted output? My guess is the command is invoked incorrectly
h
Ah yes, the root cause was because I passed in --provider-version-tag="$CI_BRANCH" instead of --provider-version-tag="$CI_COMMIT_BRANCH"
👍 1