David McKinney
06/20/2025, 10:31 AM2025-06-20T09:55:08.050264Z INFO ThreadId(16) pact_verifier: Running setup provider state change handler with empty state for 'a setCurrentPage event with empty pageId'
2025-06-20T09:55:08.050280Z INFO ThreadId(16) pact_verifier: Running provider verification for 'a setCurrentPage event with empty pageId'
2025-06-20T09:55:08.050295Z INFO ThreadId(16) pact_verifier::provider_client: Sending request to provider at <http://localhost:56254/>
2025-06-20T09:55:08.050300Z INFO ThreadId(16) pact_verifier::provider_client: Sending request HTTP Request ( method: POST, path: /, query: None, headers: Some({"Content-Type": ["application/json"]}), body: Present(58 bytes, application/json) )
[10:55:08.052] ERROR (8141): pact@15.0.1: no handler found for message a setCurrentPage event with empty pageId
Pactfile - https://pastebin.com/zqtfunst
Consumer - https://pastebin.com/8MqM3Sre
Provider - https://pastebin.com/fNTH9cSc
My consumer tests will pass, generate the pactfile, it looks correct
But on running the provider tests using jest it seems to use default http verifierMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
a setCurrentPage event with empty pageId so … it looks OK to my eyes 🤔David McKinney
06/20/2025, 11:09 AMMatt (pactflow.io / pact-js / pact-go)
David McKinney
06/20/2025, 11:10 AMMatt (pactflow.io / pact-js / pact-go)
David McKinney
06/20/2025, 11:12 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
David McKinney
06/20/2025, 11:17 AMThe pact at <https://g-p.pactflow.io/pacts/provider/dynamic-forms-ui-provider/consumer/dynamic-forms-test-consumer/pact-version/9c03a14753f62693b5734fb618f907c95bfe4c68> is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version of dynamic-forms-test-consumer that has a pact with dynamic-forms-ui-provider (0.0.1)Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
PACT_BROKER_xyz env vars in your environment - just check if they’ve been clearedDavid McKinney
06/20/2025, 11:20 AMDavid McKinney
06/20/2025, 11:29 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
providerWithMetadata variant?
https://github.com/pact-foundation/pact-js/blob/master/docs/messages.md#provider-producerMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
David McKinney
06/20/2025, 11:39 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
David McKinney
06/23/2025, 9:08 AMMatt (pactflow.io / pact-js / pact-go)
Slackbot
06/23/2025, 11:14 AMMatt (pactflow.io / pact-js / pact-go)
formStateUpdate.provider.pact.ts
• etCurrentPage.provider.pact.ts and
• setFormValues.provider.pact.ts
It looks like you’re trying to split the tests across these three files? I think that’s the problem - each MessageProviderPact is trying to verify all of the interactions in the pact file. I suspect this might be part of the problem?David McKinney
06/23/2025, 2:31 PMMatt (pactflow.io / pact-js / pact-go)
David McKinney
06/26/2025, 7:50 AMMatt (pactflow.io / pact-js / pact-go)