Eddie Stanley
04/23/2023, 11:57 PMPublishing of verification results failed with an error: Link/Resource was not found - Request to pact broker path '/pacticipants/xyz.BFF' failed: 404 Not Found. URL: '<https://mycompany.pactflow.io/pacts/provider/xyz.BFF/consumer/prq.SPA/version/a29c9c63b2fc1cae4b8488b322b6fc7b02cd5ca1>'
Code in question looks like this:
verifierSource = provider.WithUriSource(_executionConfig.Pact.IncomingWebhook.PactUrl,
webHookOptions => webHookOptions.TokenAuthentication(_executionConfig.Pact.Broker.Token)
.PublishResults(optionalProviderVersion.IsSome,
optionalProviderVersion.Match(v => v, string.Empty),
options => options
.WithProviderBranchIfSuppliedAndValid(_executionConfig)
.WithTeamcityBuildUrlIfSuppliedAndValid(_executionConfig.Teamcity))
);
Q1: Is the PactUrl
somehow wrong? It's like this currently <https://mycompany.pactflow.io/pacts/provider/xyz.BFF/consumer/pqr.SPA/version/a29c9c63b2fc1cae4b8488b322b6fc7b02cd5ca1>
Q2: What is the error message (Link/Resource was not found
) telling me?
Q3: How do I arrange for this to throw an exception if publishing results fails rather than just logging this error?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
webHookOptions
though and the WithProviderBranchIfSuppliedAndValid
things - these don’t look part of the Pact .NET API. Is this some internal wrapper?Matt (pactflow.io / pact-js / pact-go)