mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
No server response in Postman and Receive Failure in Fiddler #176
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @codeplayer14 on GitHub (Jun 3, 2019).
I'm using the following code
On hitting this with Postman or Fiddler I get no response. The server is started as mentioned below. I also face the same issue when I start it with Admin interface and try to access one of the admin routes.
From the Immediate Window, this is the status of the fms variable
@StefH commented on GitHub (Jun 3, 2019):
After your start code, can you try to add this code?
@codeplayer14 commented on GitHub (Jun 3, 2019):
I tried. Same result. I was using a while(true) loop before to block the thread from exiting. Replaced it with your code. But the result is still the same.
@StefH commented on GitHub (Jun 3, 2019):
Note that when you start the server like this, a random port is used.
If you want to fix the port, use:
or
@codeplayer14 commented on GitHub (Jun 3, 2019):
Yeah. But that's not the issue I'm facing. I've been getting the port from fms.Ports and using it in the request. However, I don't get a response.
@StefH commented on GitHub (Jun 3, 2019):
You are sending a POST request ?
(Can you also export the Postman request so that I can re-play this on my machine?)
@codeplayer14 commented on GitHub (Jun 3, 2019):
Yes I'm using a POST request. Attaching the Postman request.
Wiremock.net Test.postman_collection.zip
@StefH commented on GitHub (Jun 3, 2019):
I'm using this code (tested in Linqpad):
And Postman works fine:

@codeplayer14 commented on GitHub (Jun 3, 2019):
Okay. Thanks. Turns out I was missing one of the dependencies! :/