-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
WireMock Setting 'SaveMappingToFile' raising cast object to type error #559
Comments
@jmontalto01 Can you provide your (static) mapping json file(s)? |
Hi, Wiremock Log: mapping file at the time of error returned in browser: |
@jmontalto01 I think I found the issue, a new version from the NuGet + Docker will be released shortly. This will be version 1.3.10 I'll close this now, in case it is not solved. just comment to this issue. |
Describe the bug
I am using wiremock docker compose example with ProxyAndRecordSettings (command "--ProxyURL" ) and setting "--SaveMappingToFile", "true". It raises the following error when browsing to http:https://localhost:9091/__admin/mappings
{"Status":"Unable to cast object of type 'WireMock.ResponseProviders.DynamicResponseProvider' to type 'WireMock.ResponseBuilders.Response'."}
Expected behavior:
Load mapping files
Test to reproduce
Docker Compose file:
version: "3.8"
services:
wiremock:
image: sheyenrath/wiremock.net
ports:
- "9091:80"
volumes:
- ./wiremock/mappings:/app/__admin/mappings
command: ["dotnet", "wiremock-net.dll", "--Urls", "http:https://*:80", "--ReadStaticMappings", "true", "--AllowPartialMapping", "true", "--WireMockLogger", "WireMockConsoleLogger", "--ProxyURL", "https://api.hub24.com.au/epi/epiportfolio.asmx", "--SaveMapping", "true", "--SaveMappingToFile", "true"]
Other related info
Provide additional information if any.
The text was updated successfully, but these errors were encountered: