Hi guys Im getting a 401 when trying to publish an...
# general
m
Hi guys Im getting a 401 when trying to publish an openapi spec from the provider side using
pactflow publish-provider-contract
using pact_broker-client-1.66.1 locally. I know the broker-base-url and broker-token are fine as I can publish the consumer contract just fine. Any ideas?
👋 1
The open api spec is in json format is this an issue?
y
the parser should accept json from previous testing. Could you provide the command and OpenAPI spec by chance, and I can try and upload on my side I assume you haven't hit your integration limit? Is there any other messages in your logs?
t
#CLS16AVEE please
👍 2
m
I'm using a template openapi just to prove the functionality
I have now started using the docker image cmd and made some progress. I am now receiving a 400 error
{"errors":{"contentType":["contentType is missing"]}}
e
try this
Copy code
pactflow publish-provider-contract \
     schema.json \
     --provider "name" \
     --provider-app-version 1.0.0 \
     --branch main \
     --content-type application/json \
     --verification-results=success.json \
     --verification-results-content-type=json \
     --verification-success \
     --verifier=postman \
     --broker-base-url=$PACT_BROKER_BASE_URL \
     --broker-token=$PACT_BROKER_TOKEN
1
m
Thanks @Eugene Malihins was resolved in the pactflow channel