anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

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

Open blazeyo opened this issue 4 months ago • 0 comments

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.

blazeyo avatar Sep 29 '24 18:09 blazeyo