openclaw - 💡(How to fix) Fix [Bug]: [Bug]: Web version WebChat shows "Maximum call stack size exceeded" when uploading attachments larger than ~4MB [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#81606Fetched 2026-05-14 03:30:31
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
2
Timeline (top)
commented ×2labeled ×2cross-referenced ×1renamed ×1

Error Message

When I upload an attachment larger than around 3MB, the upload fails and the web UI shows the following error:

Code Example

Maximum call stack size exceeded

### Steps to reproduce

Open OpenClaw WebChat / Control UI in a browser.
Start a new chat.
Upload an attachment larger than around 4MB.
Send the message.
The upload fails and the web UI shows:

### Expected behavior

The web version should upload the attachment successfully, or at least show a clear file size / file type limit message.

For example:

The uploaded file exceeds the supported size limit.

### Actual behavior

The upload fails with:

Maximum call stack size exceeded

### OpenClaw version

2026.5.7

### Operating system

debian12

### Install method

_No response_

### Model

gpt-5.5

### Provider / routing chain

openclaw

### Additional provider/model setup details

_No response_

### Logs, screenshots, and evidence
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Bug Description

I am using the web version of OpenClaw, specifically the WebChat / Control UI.

When I upload an attachment larger than around 3MB, the upload fails and the web UI shows the following error:

Maximum call stack size exceeded

### Steps to reproduce

Open OpenClaw WebChat / Control UI in a browser.
Start a new chat.
Upload an attachment larger than around 4MB.
Send the message.
The upload fails and the web UI shows:

### Expected behavior

The web version should upload the attachment successfully, or at least show a clear file size / file type limit message.

For example:

The uploaded file exceeds the supported size limit.

### Actual behavior

The upload fails with:

Maximum call stack size exceeded

### OpenClaw version

2026.5.7

### Operating system

debian12

### Install method

_No response_

### Model

gpt-5.5

### Provider / routing chain

openclaw

### Additional provider/model setup details

_No response_

### Logs, screenshots, and evidence

```shell

Impact and severity

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The web version should upload the attachment successfully, or at least show a clear file size / file type limit message.

For example:

The uploaded file exceeds the supported size limit.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: [Bug]: Web version WebChat shows "Maximum call stack size exceeded" when uploading attachments larger than ~4MB [2 comments, 2 participants]