这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@blazeyo

Description

@blazeyo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions