[GH-ISSUE #2389] [BUG]: Can't add documents larger than 100kb via /api/v1/document/raw-text #1553

Closed
opened 2026-02-22 18:25:23 -05:00 by yindo · 0 comments
Owner

Originally created by @blazeyo on GitHub (Sep 29, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2389

How are you running AnythingLLM?

Docker (local)

What happened?

Sending a document larger than 100kb to /api/v1/document/raw-text results in:

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

Are there known steps to reproduce?

Send a document >100kb via /api/v1/document/raw-text.

Originally created by @blazeyo on GitHub (Sep 29, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2389 ### How are you running AnythingLLM? Docker (local) ### What happened? Sending a document larger than 100kb to /api/v1/document/raw-text results in: ``` [collector] error: PayloadTooLargeError: request entity too large at readStream (/app/collector/node_modules/raw-body/index.js:163:17) at getRawBody (/app/collector/node_modules/raw-body/index.js:116:12) at read (/app/collector/node_modules/body-parser/lib/read.js:79:3) at jsonParser (/app/collector/node_modules/body-parser/lib/types/json.js:138:5) at Layer.handle [as handle_request] (/app/collector/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/app/collector/node_modules/express/lib/router/index.js:328:13) at /app/collector/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/app/collector/node_modules/express/lib/router/index.js:346:12) at next (/app/collector/node_modules/express/lib/router/index.js:280:10) at textParser (/app/collector/node_modules/body-parser/lib/types/text.js:78:7) ``` ### Are there known steps to reproduce? Send a document >100kb via /api/v1/document/raw-text.
yindo added the possible bug label 2026-02-22 18:25:23 -05:00
yindo closed this issue 2026-02-22 18:25:23 -05:00
yindo changed title from [BUG]: Can't add documents larger than 100kb via /api/v1/document/raw-text to [GH-ISSUE #2389] [BUG]: Can't add documents larger than 100kb via /api/v1/document/raw-text 2026-06-05 14:41:22 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1553