Closed GaboDimitrov closed 2 years ago
Are you missing the https://
on the start of your Pact Broker base URL?
$ irb
irb(main):001:0> URI("foo").request_uri
Traceback (most recent call last):
4: from /Users/bethanyskurrie/.rubies/ruby-2.7.5/bin/irb:23:in `<main>'
3: from /Users/bethanyskurrie/.rubies/ruby-2.7.5/bin/irb:23:in `load'
2: from /Users/bethanyskurrie/.rubies/ruby-2.7.5/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
1: from (irb):1
NoMethodError (undefined method `request_uri' for #<URI::Generic foo>)
irb(main):002:0> URI("https://foo").request_uri
=> "/"
@bethesque No, Https isn't missing.
Are you able to pin previous version to specific tags to ascertain which version this is affecting please?
https://hub.docker.com/r/pactfoundation/pact-cli/tags
This one specifically is 2 months old 0.50.0.21
Using latest in CI builds for docker images has the potential to introduce to any number of breaking changes, especially if that is used across the board, rather than being an outlier
Also with regards to Error 1 and Error 2, which versions were these with, it isn't clear in your original report
I've tried to replicate it using the demo code from the cli repo, and I can't reproduce it. Can you see if you can modify the example to reproduce your issue?
https://github.com/pact-foundation/pact-ruby-cli/#verify-pacts
export PACT_BROKER_BASE_URL="https://test.pactflow.io"
export PACT_BROKER_USERNAME="dXfltyFMgNOFZAxr8io9wJ37iUpY42M"
export PACT_BROKER_PASSWORD="O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1"
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS=true GIT_COMMIT=fake-git-sha-for-demo$(date +%s) GIT_BRANCH=master \
docker-compose -f docker-compose-verify.yml \
up --build --abort-on-container-exit --exit-code-from pact_verifier
If you can add --verbose
to the verify call that will also help.
@bethesque I tried with the demo code from your repo and it did the work. Thank you!
We are using pact CLI to verify our contracts for quite some time. We are using CircleCI where we always get the latest docker image for pact-cli. Since the latest version (0.50.0.26), we receive an error (check error 1). We tried to use an older version of pact-cli and we got a different error (check Error 2). We have always worked with the same value format and we even tried to execute it manually, but with no success. Can you please check what is going on, or if we miss something?
We are using this command.