Hi, there are something wrong or missing with my c...
# pact-go
v
Hi, there are something wrong or missing with my configurations to verify provider with Pactflow? My first tests was checking local files and then using local broker (with BrokerUsername and password) and everything worked well, but now trying with Pactflow I receive
1) Failed to load pact - Failed to load pact from '<https://broker.pactflow.io>'
From consumer side, I got it normally
Copy code
// Verify the Provider with local Pact Files
	err := verifier.VerifyProvider(s.T(), provider.VerifyRequest{
		ProviderBaseURL: fmt.Sprintf("<http://127.0.0.1>:%d", port),
		Provider:        "web-front",
		ProviderVersion: "1.0.0",                        // TODO: get commit SHA
		BrokerURL:       "<https://broker.pactflow.io>", // TODO: get from env
		BrokerToken:     "token",       // TODO: get from env
I couldn't identify anything relevant in the debug logs either The last logs near the error was:
Copy code
12-12T19:03:44.337255Z  INFO ThreadId(01) pact_verifier::pact_broker: Fetching path '/pacts/provider/web-front/consumer/web-front-consumer/pact-version/222221279197eda18248e7c888cb2440ce0a9482/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT0xMw' from pact broker
2023-12-12T19:03:44.337302Z DEBUG ThreadId(01) hyper::client::pool: reuse idle connection for ("https", <http://broker.pactflow.io|broker.pactflow.io>)
2023-12-12T19:03:44.337358Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_write: send frame=Headers { stream_id: StreamId(7), flags: (0x5: END_HEADERS | END_STREAM) }
2023-12-12T19:03:44.774798Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_read: received frame=Headers { stream_id: StreamId(7), flags: (0x4: END_HEADERS) }
2023-12-12T19:03:44.774926Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(7) }
2023-12-12T19:03:44.774952Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(7) }
2023-12-12T19:03:44.774961Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(7), flags: (0x1: END_STREAM) }
2023-12-12T19:03:44.778494Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::codec::framed_write: send frame=GoAway { error_code: NO_ERROR, last_stream_id: StreamId(0) }
2023-12-12T19:03:44.778536Z DEBUG tokio-runtime-worker Connection{peer=Client}: h2::proto::connection: Connection::poll; connection error error=GoAway(b"", NO_ERROR, Library)
2023-12-12T19:03:44.778609Z ERROR ThreadId(01) pact_verifier: Failed to load pact - Failed to load pact from '<https://broker.pactflow.io>'
2023-12-12T19:03:44.778703Z  WARN ThreadId(01) pact_matching::metrics:
idk exactly what happens but now it's working the problem was related only to fetch pact from Pactflow, I run one time by getting the Pact file from a local base and publish the results on Pactflow and then the next executions start to work
🤷 1
m
Let’s see how you go moving forward. Just note, ideally you should be using consumer version selectors to discover the pacts
v
Hmm got it, thank you!
👍 1