# Append data exceeds maximum size

**URL:** <https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288>\
**Category:** Help\
**Tags:** cli\
**Created:** [April 28, 2026, 7:48pm UTC](https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288 "2026-04-28T19:48:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Hodges](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Scott\_Hodges](https://forum.cursor.com/u/Scott_Hodges)\
**Post date:** [April 28, 2026, 7:48pm UTC](https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288/1 "2026-04-28T19:48:10Z")

</div>

The CLI agent command fails with ‘Append data exceeds maximum size of 52428800 bytes’ on every message, but the IDE agents work fine. I tried using the CLI agent version 2026.04.17 and 2026.04.15. Steps to try to fix the issue that didn’t work:

- Cleared out my cursor directory with `rm -rf ~/.cursor` and recreated it `cursor agent login`
  - I think that rules out skills or history causing issues

- Killed any background agents that were running that I might not have been aware of `ps aux | grep -i cursor` then `kill pid`
- Ran the agent with the test message `hi` in an empty directory

I have the `useHttp1ForAgent` setting set to true for the agent because I’m on a VPN, otherwise the agent fails to connect. Using the troubleshooting steps above I’m still stuck with the error: “Error: Bad Request  
Append data exceeds maximum size of 52428800 bytes”

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [April 29, 2026, 3:34am UTC](https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288/8 "2026-04-29T03:34:38Z")

</div>

Hi Scott, thanks for the report, and sorry for the trouble.

I’ve linked this to an existing investigation on our side. Based on what you shared, this looks related to the CLI agent’s HTTP/1 transport path that you enabled for VPN compatibility. Clearing `~/.cursor` or starting from an empty directory likely won’t help, since this does not appear to be caused by local history or project files.

For now, the main workaround is to use a network or VPN configuration that allows the CLI agent to use the default HTTP/2 connection path, if that’s possible. We know that may not be available in your setup, so we’re tracking this with engineering.

We do have an internal request that’s open for this that can help alleviate the problem and I’ll let you know if that gets picked up.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [May 28, 2026, 2:33pm UTC](https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288/11 "2026-05-28T14:33:30Z")

</div>

Hey @Scott_Hodges,  
The size-limit error you were hitting on the CLI agent with `useHttp1ForAgent: true` has been fixed on our backend — no Cursor update needed. Please give the CLI agent another try; it should go through now. If you still see the same error on retry, reply here with the timestamp and we’ll dig in.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 30, 2026, 2:33pm UTC](https://forum.cursor.com/t/append-data-exceeds-maximum-size/159288/12 "2026-05-30T14:33:44Z")

</div>

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