# The request body sent by you exceeds the 1mb size limit

**URL:** <https://community.postman.com/t/the-request-body-sent-by-you-exceeds-the-1mb-size-limit/50185>\
**Category:** Help Hub\
**Tags:** collections, mockservers\
**Created:** [August 2, 2023, 12:42pm UTC](https://community.postman.com/t/the-request-body-sent-by-you-exceeds-the-1mb-size-limit/50185 "2023-08-02T12:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![D4rkdr4g0n1](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@D4rkdr4g0n1](https://community.postman.com/u/D4rkdr4g0n1)\
**Post date:** [August 2, 2023, 12:42pm UTC](https://community.postman.com/t/the-request-body-sent-by-you-exceeds-the-1mb-size-limit/50185/1 "2023-08-02T12:42:05Z")

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

I am currently trying to send a body request via HTTP Post that is larger than 1MB. However, my Postman Mock Server is giving me an error.

As a response i get:  
“error”: {  
“name”: “badRequest”,  
“message”: “The request body sent by you exceeds the 1mb size limit.”  
}

I’m hitting the Mock Server endpoint from Postman HTTP request.  
My Endpoint is {{url}}/stock  
Variable url: [https://e62f6bc4xxx.mock.pstmn.io](https://e62f6bc4xxx.mock.pstmn.io)  
My Body is in JSON Format and is 1.2mb big.

 ![Screenshot 2023-08-02 141817](https://us1.discourse-cdn.com/getpostman/original/3X/9/a/9a64236d949372af2cf2f15357ade4e7acc14403.png)

How can I make the settings on the Mock Server so that larger bodies are accepted?

Ok i think this is a limitation from Postman…

> <https://github.com/postmanlabs/postman-app-support/issues/9467>
>
> Postman for Mac
> Version 7.36.1
> OS X 20.1.0 / x64
> 
> Postman mock server is ret…urning 400 Bad Request for the request with payload content-length: "1134046" but it is working fine when the request payload is smaller (e.g: content-length: "998144")
> !\[Screen Shot 2021-01-27 at 1 32 50 pm\](https://user-images.githubusercontent.com/73458540/105939888-36820a00-60ae-11eb-8d90-1a22ac036c57.png)

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [August 2, 2023, 4:05pm UTC](https://community.postman.com/t/the-request-body-sent-by-you-exceeds-the-1mb-size-limit/50185/2 "2023-08-02T16:05:00Z")

</div>

Hey @D4rkdr4g0n1 !

Postman mock servers have a limit of 1MB for the body of a request. This is a restriction in place to ensure the performance and reliability of our mock servers.

At this time, there’s no setting that allows you to increase this limit on a Postman mock server.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 31, 2023, 4:05pm UTC](https://community.postman.com/t/the-request-body-sent-by-you-exceeds-the-1mb-size-limit/50185/3 "2023-10-31T16:05:31Z")

</div>

Closed on October 31, 2023, 4:05pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
