Hello Postman friends! One of the developers at my company is seeing some strange behavior with mock requests. The problem is intermittent, so I’m wondering if there’s some kind of caching issue in addition to a potential bug.
The situation is this: we have a POST URL that includes two variables:
{{BaseEnvironmentUri}}{{uriPrefix}}/Queue/StatusSummary
The request itself works OK, but when he creates an example request with this URL and then uses it in a mock request, he gets this response:
{
“error”: {
“name”: “mockRequestNotFoundError”,
“message”: “Double check your method and the request path and try again.”,
“header”: “No matching requests”
}
}
If he changes the example request to only use one variable, and uses the hard-coded value for the second variable, then he gets the correct mocked response.
However, this issue has been very difficult to reproduce, because I’m only seeing the problem intermittently. I’m wondering if the mocked response is being cached, so that there are times when I get the correct response when I’m using two variables, and there are times when I get the error response when I’m using one variable.
I’d love to find out if caching is causing the intermittent behavior, and if we do indeed have a bug here. Thanks!