Not reading the response from a file when mappings are placed in json file #85

Closed
opened 2025-12-29 08:22:01 +01:00 by adam · 0 comments
Owner

Originally created by @raghavendrabankapur on GitHub (Apr 9, 2018).

The server is not ready the response from a file when the mapping is present in a static file.

Ex.

{
    "Request": {
        "Path": {
            "Matchers": [
                {
                    "Name": "WildcardMatcher",
                    "Pattern": "/static/mapping"
                }
            ]
        },
        "Methods": [
            "get"
        ]
    },
    "Response": {
        "BodyAsFile": "<filepath>",
        "Headers": {
            "Content-Type": "application/json"
        }
    }
}

Here the response body is empty but the headers are getting returned

Originally created by @raghavendrabankapur on GitHub (Apr 9, 2018). The server is not ready the response from a file when the mapping is present in a static file. Ex. ``` { "Request": { "Path": { "Matchers": [ { "Name": "WildcardMatcher", "Pattern": "/static/mapping" } ] }, "Methods": [ "get" ] }, "Response": { "BodyAsFile": "<filepath>", "Headers": { "Content-Type": "application/json" } } } ``` Here the response body is empty but the headers are getting returned
adam closed this issue 2025-12-29 08:22:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#85