Hello All, I am trying to write an interaction whe...
# pact-js
p
Hello All, I am trying to write an interaction where I need to provide custom headers. But this doesn't seem to be working. Am I doing something wrong here?
m
You’re saying to Pact “I expect my test to make a call to the mock server with these headers” but it’s failing, because you are not making a request that has those headers and it’s not a multi part form request
p
Agree. My bad. Solved this error . Thanks a lot! But now I am unable to make multipart request from Pact. I am doing this but it doesn't work
I have tested my mock service and it works fine. It uploads the file using formdata. But when I replicate the request in Pact interaction it throws error. Here is my mock service