does anyone know should `async` state handler func...
# pact-js
b
does anyone know should
async
state handler functions be supported in theory? a team has recently upgraded their node version and broken the verification. when i make the state handler function that was async not async (hardcode the needed response) then it works ok
m
Async should definitely work.
What version?
b
it was 9.12.1 which i know is really old but even upgrading didn't work
maybe there's something funky with the API we're using to make the network request...
i'll look into that
m
👍 let us know if you can share.
b
facepalm why did I not check this first...
i'm going to say it's because it was Friday
😆 1
yep, body is no longer wrapped in 'res' in this node version
m
Ah, do you mean outside of Pact?
b
we're using chai.request to make the network request
simply it's response.body now instead of response.res.body
also to be honest this was made doubly hard to debug by the fact that the stupid provider returns a 500 when there's no valid login token
m
🤣