You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the tracker for existing similar issues and I know that duplicates will be closed
Describe the Issue
When requesting a response from the mock server endpoint, I am passing the x-api-key.
My endpoint has an example saved which has status code 200 OK.
When I try to access it using header x-mock-response-name: refData, it works.
However when I try to access it using header x-mock-response-code: 200, it returns a 404 error -
{
"error": {
"name": "mockRequestNotFoundError",
"message": "Double check your method and the request path and try again.",
"header": "No matching requests"
}
}
Steps To Reproduce
Create a mock-server
Make it private
Generate an API Key
create and endpoint in the mock server's collection
save an example to that endpoint named refData with response code as 200 OK
Access that endpoint with the following 2 headers - x-api-key:xxx and x-mock-response-name: refData
It works.
Change one if the headers from x-mock-response-name: refData to x-mock-response-code: 200
You get the above mentioned error.
Screenshots or Videos
No response
Operating System
Mac OS
Postman Version
10.0.42
Postman Platform
Postman App
Additional Context?
No response
The text was updated successfully, but these errors were encountered:
Hi @bhuvanmehra , I am sorry to see that you are not able to use mock servers. I tried out all the steps to reproduce this error and it seems to be working fine for me. I have a hunch there might be some other matching criteria that's getting applied to your mock request that's not evident here. Can you share the collection json with me so I can determine what exactly is causing the error?
Hey @bhuvanmehra , I hope my response helped you in resolving the issue you were facing. I'm closing this issue for now since there hasn't been any update from your end. Feel free to reopen this issue if you face any problems with the same flow again. Thanks!
Is there an existing issue for this?
Describe the Issue
When requesting a response from the mock server endpoint, I am passing the
x-api-key
.My endpoint has an example saved which has status code 200 OK.
When I try to access it using header
x-mock-response-name: refData
, it works.However when I try to access it using header
x-mock-response-code: 200
, it returns a 404 error -Steps To Reproduce
refData
with response code as200 OK
x-api-key:xxx
andx-mock-response-name: refData
It works.
x-mock-response-name: refData
tox-mock-response-code: 200
Screenshots or Videos
No response
Operating System
Mac OS
Postman Version
10.0.42
Postman Platform
Postman App
Additional Context?
No response
The text was updated successfully, but these errors were encountered: