<#1201 ERROR ThreadId(01) pact_ffi::mock_server::...
# pact-js-development
g
#1201 ERROR ThreadId(01) pact_ffi::mock_server::handles: Failed to parse the value: expected value at line 1 column 1 Issue created by rawrew Software versions • OS: Win 11 • Consumer Pact library: Pact JS v12.1.3 • Node Version: v20.11.0 Issue Checklist Please confirm the following: ☑︎ I have upgraded to the latest ☑︎ I have the read the FAQs in the Readme ☑︎ I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures ☐ I have set my log level to debug and attached a log file showing the complete request/response cycle ☑︎ For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem Expected behaviour No errors Actual behaviour Multiple error messages like:
ERROR ThreadId(01) pact_ffi::mock_server::handles: Failed to parse the value: expected value at line 1 column 1
Steps to reproduce 1. git clone https://github.com/pact-foundation/pact-js.git 2. Open ./pact-js/examples/typescript/package.json and change
"@pact-foundation/pact": "file:../../dist/",
to
"@pact-foundation/pact": "^12.1.3",
or
"@pact-foundation/pact": "^12.3.0",
(it started showing this errors starting 12.1.3) 3. From ./pact-js/examples/typescript/
run npm install
4. Open ./pact-js/examples/typescript/test/get-dog.spec.ts Change log level to 'error' and add pactfileWriteMode: 'merge' into Pact configuration:
Copy code
const provider = new Pact({
    // .. leave as is
    logLevel: 'error',
    pactfileWriteMode: 'merge'
  });
6. From ./pact-js/examples/typescript run:
npm run test
7. See error messages in console Thank you pact-foundation/pact-js