-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
received but no interaction registered #73
Comments
Sorry for the delay, Danny. Is this still an issue? |
Hello @r1chardj0n3s , This is still an issue which is observed for my code. class GetUserInfoContract(unittest.TestCase):
When the above code is run in debug mode, I found the error 'Received but no interaction registered'. I executed When it is run in a single shot I am seeing below error. Any help is appreciated !!! Thanks. |
"No connection could be made because the target machine actively refused it" looks like some sort of firewall configuration issue? |
But @r1chardj0n3s , If I use the below code also I am able to generate PACT.
Observe, I have commented the lines Start server and Stop server also by giving the flag value Then what is the actual need of previous code where in we are starting and stopping the mock server ?? |
Yep! You don't need to run a mocking server to get the benefits of pact mocking - it's included mostly for legacy and edge case needs. |
Can you help me in understanding what do you mean by edge case needs... !!! Any Example which can help me understand the concept more clear. |
Sorry, I can't actually think of one right now. If you don't need it, then don't use it. |
Okay @r1chardj0n3s . |
I'm having an issue when attempting to make a request to the mock server. The mock server returns a 500 status code and a message 'received but no interaction registered'
My code looks like this:
I then run it using
and get
I have no additional code. My understanding is that pact provides the mocking, is this correct?
Any help appreciated. Thanks.
The text was updated successfully, but these errors were encountered: