Troubleshooting Postman mock servers

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

1 Like

Hey @nkosbonile :waving_hand:t2:

Welcome to the Postman Community :postman:

Could you also share some visual examples of the problem so that we can see what’s happening here?

1 Like

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.