I’m having trouble debugging the `stateHandler` er...
# pact-js
g
I’m having trouble debugging the
stateHandler
error. Currently facing this error:
Request Failed - One or more of the setup state change handlers has failed
Any tips?
Copy code
pact@11.0.2: incoming request: {"body":{"action":"setup","params":{},"state":"app returns track"},"headers":{"content-type":"application/json","accept":"*/*","accept-encoding":"gzip, deflate","host":"127.0.0.1:54019","content-length":"80"},"method":"POST","path":"/_pactSetup"}
response:
Copy code
pact@11.0.2: outgoing response: {"body":"{}","headers":{"x-powered-by":"Express","content-type":"application/json; charset=utf-8","content-length":"2","etag":"W/\"2-vyGp6PvFo4RvsFtCReyIC8\""},"status":500}
and
Copy code
MismatchResult::Error("Invalid status code: 500", Some("5cbe56155d020d5029ec00d211bf319a47823e6e"))