Liudmyla Malomuzh
02/26/2024, 6:47 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Liudmyla Malomuzh
02/27/2024, 7:27 AMMatt (pactflow.io / pact-js / pact-go)
Here is pact log, however I do not find it helpful. I used pact verifier, because when I published my contracts from consumer, in the console I got next steps, which included verifying provider. Isn’t it necessary before deploying?absolutely! But if you’re doing BDCT you don’t need to use the Pact Verifier - you can use any API testing tool you like to ensure the OAS is valid. See https://docs.pactflow.io/docs/bi-directional-contract-testing/publishing#publishing-the-provider-contract--results-to-pactflow You can also do Pact verification testing (what you’re doing above), although usually you wouldn’t use that CLI directly, and would do it with a language client (Pact JS, Pact Ruby etc.). The CLI is there mostly for those that can’t (or don’t want to) use the client SDKs
Matt (pactflow.io / pact-js / pact-go)
200 and others 408 . It looks like a problem with your API provider.
You should look into the logs of your locally running API to understand the problem - for instance, does it need to be connected to a downstream system that’s unavailable? (hence timing out)?Liudmyla Malomuzh
02/27/2024, 7:51 PMProvider API listening on port 3001...
BadRequestError: request aborted
at IncomingMessage.onAborted (/Users/liudmylamalomuzh/Documents/terms-provider/node_modules/raw-body/index.js:238:10)
at IncomingMessage.emit (node:events:519:28)
at IncomingMessage.emit (node:domain:488:12)
at IncomingMessage._destroy (node:_http_incoming:224:10)
at _destroy (node:internal/streams/destroy:121:10)
at IncomingMessage.destroy (node:internal/streams/destroy:83:5)
at abortIncoming (node:_http_server:793:9)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at Socket.emit (node:domain:488:12)Liudmyla Malomuzh
02/27/2024, 7:52 PMMatt (pactflow.io / pact-js / pact-go)