Postman does not accept `-` as an URI param for mocking server requests

I get the following error response:

{
    "error": {
        "name": "mockRequestNotFoundError",
        "header": "No matching requests",
        "message": "Double check your method and the request path and try again."
    }
}

When I pass - as an URI param for a Postman request created via a mocking server unlike when I pass the same URI param value in a request not created via a mocking server it’s working well!

URL: http://{{host}}/order/{{subUserId}}/{{BusinessDate}}/5

host: {mocking-server-url-without-http-keyword}

subUserId: 1

BusinessDate: 2020-01-12-17-07-21

HTTP request header: x-api-key : {{postman_secret_API_key}}

The main request by using the mocking server as a host which returns data correctly:

enter image description here

The mocked request by using the mocking server as a host which returns an error:

enter image description here

Question on stackoverflow:

Hey @Gawady14,

Could you post an image of the Environment file, please? Mask any sensitive data in there before posting in the forum.

I have the mock server returning my expected response using the same datestamp in the variable so I don’t think it’s to do with the - character.

1 Like

@danny-dainton Environment file

I am sorry I haven’t updated ‘host’ key will test it after few moments.