[GH-ISSUE #4525] [Bug]: PayloadTooLargeError: request entity too large (v25.3.1) #8866

Closed
opened 2026-04-10 19:09:52 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @alexwbaule on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/actualbudget/actual/issues/4525

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

I Clean my last version (25.2.1) and install the new one, 25.3.1

When i try to sync what is in my browser, with the new instalation, in the logs i got:

PayloadTooLargeError: request entity too large
at readStream (/opt/actualbudget/node_modules/raw-body/index.js:163:17)
at getRawBody (/opt/actualbudget/node_modules/raw-body/index.js:116:12)
at read (/opt/actualbudget/node_modules/body-parser/lib/read.js:79:3)
at rawParser (/opt/actualbudget/node_modules/body-parser/lib/types/raw.js:81:5)
at Layer.handle [as handle_request] (/opt/actualbudget/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/opt/actualbudget/node_modules/express/lib/router/index.js:328:13)
at /opt/actualbudget/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/opt/actualbudget/node_modules/express/lib/router/index.js:346:12)
at next (/opt/actualbudget/node_modules/express/lib/router/index.js:280:10)
at jsonParser (/opt/actualbudget/node_modules/body-parser/lib/types/json.js:122:7)

How can we reproduce the issue?

My sqlite files has about 70MB (pure sqlite file from backup file), maybe creating a file with this size, can reproduce it ?

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @alexwbaule on GitHub (Mar 3, 2025). Original GitHub issue: https://github.com/actualbudget/actual/issues/4525 ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? I Clean my last version (25.2.1) and install the new one, 25.3.1 When i try to sync what is in my browser, with the new instalation, in the logs i got: PayloadTooLargeError: request entity too large at readStream (/opt/actualbudget/node_modules/raw-body/index.js:163:17) at getRawBody (/opt/actualbudget/node_modules/raw-body/index.js:116:12) at read (/opt/actualbudget/node_modules/body-parser/lib/read.js:79:3) at rawParser (/opt/actualbudget/node_modules/body-parser/lib/types/raw.js:81:5) at Layer.handle [as handle_request] (/opt/actualbudget/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/opt/actualbudget/node_modules/express/lib/router/index.js:328:13) at /opt/actualbudget/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/opt/actualbudget/node_modules/express/lib/router/index.js:346:12) at next (/opt/actualbudget/node_modules/express/lib/router/index.js:280:10) at jsonParser (/opt/actualbudget/node_modules/body-parser/lib/types/json.js:122:7) ### How can we reproduce the issue? My sqlite files has about 70MB (pure sqlite file from backup file), maybe creating a file with this size, can reproduce it ? ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the bug label 2026-04-10 19:09:52 -05:00
Author
Owner

@youngcw commented on GitHub (Mar 3, 2025):

did you set the max size env var in your docker setup?

<!-- gh-comment-id:2695711124 --> @youngcw commented on GitHub (Mar 3, 2025): did you set the max size env var in your docker setup?
Author
Owner

@alexwbaule commented on GitHub (Mar 3, 2025):

Resolved:
using config.
In packages/sync-server/config.json
Add:

  "upload": {
    "file_size_limit_mb": 30,
    "sync_encrypted_file_sync_size_limit_mb": 70,
    "file_sync_size_limit_mb": 30
  }

<!-- gh-comment-id:2695796276 --> @alexwbaule commented on GitHub (Mar 3, 2025): Resolved: using config. In packages/sync-server/config.json Add: ``` "upload": { "file_size_limit_mb": 30, "sync_encrypted_file_sync_size_limit_mb": 70, "file_sync_size_limit_mb": 30 } ```
Author
Owner

@youngcw commented on GitHub (Mar 3, 2025):

Great! If your file is already really big, maybe up those limits so you don't hit this issue again

<!-- gh-comment-id:2695799239 --> @youngcw commented on GitHub (Mar 3, 2025): Great! If your file is already really big, maybe up those limits so you don't hit this issue again
Author
Owner

@alexwbaule commented on GitHub (Mar 3, 2025):

Just a 2 cents comment:

Maybe this must be more clear on configuration i found it in a Docker image, as "envs" , there is no documentation about it.

<!-- gh-comment-id:2695808759 --> @alexwbaule commented on GitHub (Mar 3, 2025): Just a 2 cents comment: Maybe this must be more clear on [configuration](https://actualbudget.org/docs/config/) i found it in a Docker image, as "envs" , there is no documentation about it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#8866