# Unable to create the mock

**URL:** <https://community.postman.com/t/unable-to-create-the-mock/1757>\
**Category:** Help Hub\
**Created:** [June 1, 2018, 7:47am UTC](https://community.postman.com/t/unable-to-create-the-mock/1757 "2018-06-01T07:47:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev-sc](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dev-sc](https://community.postman.com/u/dev-sc)\
**Post date:** [June 1, 2018, 7:47am UTC](https://community.postman.com/t/unable-to-create-the-mock/1757/1 "2018-06-01T07:47:52Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi, any news on mock servers?  
I’m getting this error: “Unable to create the mock”

Thanks!

---

<div class="post-metadata">

**Author:** ![pratik](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pratik/32/224_2.png) [@pratik](https://community.postman.com/u/pratik)\
**Post date:** [June 1, 2018, 8:01am UTC](https://community.postman.com/t/unable-to-create-the-mock/1757/2 "2018-06-01T08:01:10Z")

</div>

Does this happen only for a specific collection?

Can you try creating a mock on a different collection and see if it throws the same error?

Are you behind any firewall or corporate proxy?

---

<div class="post-metadata">

**Author:** ![dev-sc](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dev-sc](https://community.postman.com/u/dev-sc)\
**Post date:** [June 1, 2018, 8:18am UTC](https://community.postman.com/t/unable-to-create-the-mock/1757/3 "2018-06-01T08:18:47Z")

</div>

Hello!

Wait!!, By the time I was writing the replay the mock URL appeared!

I’ll give it a try 😃

Thanks!!
