# Postman mocking a GET request with query param is failing!

**URL:** <https://community.postman.com/t/postman-mocking-a-get-request-with-query-param-is-failing/25591>\
**Category:** Help Hub\
**Tags:** tests, mockservers\
**Created:** [July 8, 2021, 11:31am UTC](https://community.postman.com/t/postman-mocking-a-get-request-with-query-param-is-failing/25591 "2021-07-08T11:31:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moorthiraj](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@moorthiraj](https://community.postman.com/u/moorthiraj)\
**Post date:** [July 8, 2021, 11:31am UTC](https://community.postman.com/t/postman-mocking-a-get-request-with-query-param-is-failing/25591/1 "2021-07-08T11:31:00Z")

</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).

Hello,

I am trying to **mock a GET call API where the request contains ‘query’ params.** If I do so, the execution of the mock test fails and below error is displayed in the response body,

{

```
"error": {

    "name": "mockRequestNotFoundError",

    "message": "Double check your method and the request path and try again.",

    "header": "No matching requests"

}

```

}

_Saved example:_

 ![200-succcess-example](https://us1.discourse-cdn.com/getpostman/original/2X/5/5486521591b3e8c2dc493b2c06c81ea04d587178.png)

_Mocked request:_

 ![mock-200-success](https://us1.discourse-cdn.com/getpostman/original/2X/5/581b92b761238ba379b5fa8dc6e59692ffae582c.png)

**Note:** _After removing the query params from saved example and updating the mock request, I got **200 Success** response._

Kindly advice on this. Thanks in advance!
