Hi my CI is having the following error when I am u...
# general
g
Hi my CI is having the following error when I am using the
pactfoundation/pact-cli:latest
docker image
Copy code
/usr/lib/ruby/gems/3.1.0/gems/pact_broker-client-1.66.1/lib/pact_broker/client/hal/http_client.rb:49:in `create_request': undefined method `request_uri' for #<URI::Generic //pact.dev.stackjourney.xyz/contracts/publish> (NoMethodError)
 
          request = Net::HTTP.const_get(http_method).new(uri.request_uri)
                                                            ^^^^^^^^^^^^
I have searched through all issues in the pact foundation github space this is the docker command I used
Copy code
docker run -t -i --rm --init --volume .. --env PACT_BROKER_BASE_URL --env PACT_BROKER_USERNAME --env PACT_BROKER_PASSWORD --env GIT_BRANCH=gz/FEAT-69/brokerclient/1 pactfoundation/pact-cli:latest /bin/sh -e -c $'pact-broker help\npact-broker publish backend/pacts --tag-with-git-branch'
m
Copy code
//pact.dev.stackjourney.xyz/contracts/publish
my guess is the URL is ill-formatted
g
does it need https in front of it? I defined my base url this way
PACT_BROKER_BASE_URL=<https://pact.dev.stackjourney.xyz>
m
Yep, it does
I’d suggest adding the
--verbose
flag to your command. My guess is that the arguments being passed aren’t quite what you were wanting
g
looks like my broker didnt defined https infront of the url but its working now thanks!
👍 1