mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Cannot use WireMockServerSettings instance with URL specified #477
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 @williambowsher-omnio on GitHub (Dec 21, 2022).
Originally assigned to: @StefH on GitHub.
I am trying to instantiate a WireMockServer using the WireMockServerSettings with a URL specified as below:
But every time I inspect the _server object, it has what appear to be 2 default URLS configured at ports 5000 and 5001.
I am using WireMock.NET 1.5.13
Could you provide any pointers about what I am doing wrong
@StefH commented on GitHub (Dec 21, 2022):
@williambowsher-omnio
You cannot provide the full url.
WireMockServer always runs at the root - url.
Can you try:
@williambowsher-omnio commented on GitHub (Dec 21, 2022):
Yep that worked, thanks for the fast response.