nkosbonile
(Nkosbonile Mteto)
July 15, 2025, 7:32am
1
I want to use the mock server to simulate a response and get write tests accordingly here is what I did:
Saved an example response that I would want to get.
-Create a mock server for my api collection and saved the mock server url in an environment.
When I try to make a request using the mock server url as the base url, I’m getting the error mentioned.
Error:getaddrinfo mockserverid.mock.pstmn.io
Hey @nkosbonile
Welcome to the Postman Community
Could you also share some visual examples of the problem so that we can see what’s happening here?
Make sure the mock server is active and you’re using the full URL with https://. Also, double-check your environment variable and mock ID—this error usually means the URL is incorrect or unresolved.