# Network error: Response not successful: Received status code 413

**URL:** <https://community.developer.atlassian.com/t/network-error-response-not-successful-received-status-code-413/56099>\
**Category:** Forge UI Kit and Custom UI\
**Tags:** forge-quotas, http-status, error\
**Created:** [February 21, 2022, 12:29pm UTC](https://community.developer.atlassian.com/t/network-error-response-not-successful-received-status-code-413/56099 "2022-02-21T12:29:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VladimirVirlan](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@VladimirVirlan](https://community.developer.atlassian.com/u/VladimirVirlan)\
**Post date:** [February 21, 2022, 12:29pm UTC](https://community.developer.atlassian.com/t/network-error-response-not-successful-received-status-code-413/56099/1 "2022-02-21T12:29:03Z")

</div>

Hi,

I am getting this

Network error: Response not successful: Received status code 413

Any idea how to debug? I understand this means response too large. But what is the exact limit?

By looknig in Quotas & Limits I can see:

Payload size 200kb Maximum combined payload size of events in single request

Is this the limit that’s being breached in my case?  
Is it possible to increase this limit?  
Thanks

---

<div class="post-metadata">

**Author:** ![amathur](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/amathur/32/35162_2.png) [@amathur](https://community.developer.atlassian.com/u/amathur)\
**Post date:** [March 1, 2022, 4:34am UTC](https://community.developer.atlassian.com/t/network-error-response-not-successful-received-status-code-413/56099/2 "2022-03-01T04:34:02Z")

</div>

Hi @VladimirVirlan ,

We export error classes for all the types of error that queue API could throw. Please see [https://developer.atlassian.com/platform/forge/runtime-reference/async-events-api-error-handling/](https://developer.atlassian.com/platform/forge/runtime-reference/async-events-api-error-handling/) for details on the error. We can use to know the exact that we are getting.

In case, it is `PayloadTooBigError` error, we do have limit a 200KB on the combined payload sent in single request. We can resolve this by breaking the `queue.push` call into multiple calls so that each sends payload less than 200kb. For example,

```plaintext
await Promise.all( [payloads].map( async (payload) => await queue.push(payload) ) );

```

cheers 🙂

---

<div class="post-metadata">

**Author:** ![VladimirVirlan](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@VladimirVirlan](https://community.developer.atlassian.com/u/VladimirVirlan)\
**Post date:** [March 1, 2022, 9:56am UTC](https://community.developer.atlassian.com/t/network-error-response-not-successful-received-status-code-413/56099/3 "2022-03-01T09:56:02Z")

</div>

Thank you @amathur . So I need to surround my calls external APIs. Thank you.
