Hey all (using a different thread for this 2nd iss...
# pact-broker
r
Hey all (using a different thread for this 2nd issue I'm having): trying to publish a provider spec with:
Copy code
docker run --rm \
  -w ${PWD} \
  -v ${PWD}:${PWD} \
  -e PACT_BROKER_BASE_URL=$PACT_BROKER_BASE_URL \
  -e PACT_BROKER_TOKEN=$PACT_BROKER_TOKEN \
  pactfoundation/pact-cli:latest \
  pactflow publish-provider-contract \
  oas/openapi.yaml \
  --provider my-provider \
  --provider-app-version 1.0.0 \
  --branch my-branch \
  --content-type application/json \
  --verification-exit-code=0 \
  --verification-results result/report.md \
  --verification-results-content-type application/yaml \
  --verifier "github-actions"
...but I'm constantly getting
Copy code
Error making request to <https://okta-poc.pactflow.io//contracts/provider/pact-demo-api1/version/1.0.0> status=404 {"error":"The requested document was not found on this server."}
As far as I can see I've set everything up correctly (those variables are correct and the oas / results files are at those paths). I'm a bit stumped, any ideas?
m
Hmm looking hard, it looks like there is a double // in there. Maybe your base URL has an extra trailing slash?
r
Aaargh deskflip ... sorry, what a daft mistake - couldn't see it for looking. Thanks Matt!
m
Haha all good! I wonder if we should detect that and strip it off One for tomorrow, glad you're back up and running!
t
I wonder if we should detect that and strip it off
Yes please!
💯 1
m