Open calvinbayer opened 1 year ago
Thanks for this, apologies for the radio silence - I'm not sure why it didn't get a response earlier.
This may be related to https://github.com/pact-foundation/pact-js/issues/1063, but is more likely related to https://github.com/pact-foundation/pact-mock_service/issues/140
👋 Thanks, this ticket has been added to the PactFlow team's backlog as PACT-768
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
I have defined a provider interaction like below. After executing that test and feeding the created PACT file into a stub server, I'd expect to get a successful response for any request in the form of
/animals?id=<SOME_NUMBER>
.Actual behaviour
When the stub server boots, it will print the following error to the console
and any request to
/animals?id=<SOME_NUMBER>
with SOME_NUMBER !== 123 will yield a 500 response. I have found this issue and this seems to have been a problem in the past that has been fixed already. However, I was not able to get it running with the latest version of@pact-foundation/pact-node
.Steps to reproduce
I've uploaded a minimal reproducible example here: https://github.com/calvinbayer/pact-stub-server-repro
Relevant log files
pact_debug_log.txt