[GH-ISSUE #1] Error when loading docx, xlsx... #2

Closed
opened 2026-10-15 18:07:21 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @RodriMora on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Office-Parser/issues/1

Originally assigned to: @Cohee1207 on GitHub.

Hi!

I'm trying to load files but I get this error:

PayloadTooLargeError: request entity too large
    at l (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:1457484)
    at e.exports (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:1457110)
    at e.exports (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:89720)
    at /home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:91797
    at Layer.handle [as handle_request] (/home/ubuntu/SillyTavern/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/ubuntu/SillyTavern/node_modules/express/lib/router/route.js:149:13)
    at Route.dispatch (/home/ubuntu/SillyTavern/node_modules/express/lib/router/route.js:119:3)
    at Layer.handle [as handle_request] (/home/ubuntu/SillyTavern/node_modules/express/lib/router/layer.js:95:5)
    at /home/ubuntu/SillyTavern/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/home/ubuntu/SillyTavern/node_modules/express/lib/router/index.js:346:12)
Uploaded file: /user/files/1716975540094_5246333393282262.txt from default-user

What is the limit for the files? It seems to work just fine with files under 100KB, but anything over that and it outputs this error.

Originally created by @RodriMora on GitHub (May 29, 2024). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Office-Parser/issues/1 Originally assigned to: @Cohee1207 on GitHub. Hi! I'm trying to load files but I get this error: ``` PayloadTooLargeError: request entity too large at l (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:1457484) at e.exports (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:1457110) at e.exports (/home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:89720) at /home/ubuntu/SillyTavern/plugins/SillyTavern-Office-Parser/dist/plugin.js:1:91797 at Layer.handle [as handle_request] (/home/ubuntu/SillyTavern/node_modules/express/lib/router/layer.js:95:5) at next (/home/ubuntu/SillyTavern/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/home/ubuntu/SillyTavern/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/home/ubuntu/SillyTavern/node_modules/express/lib/router/layer.js:95:5) at /home/ubuntu/SillyTavern/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/home/ubuntu/SillyTavern/node_modules/express/lib/router/index.js:346:12) Uploaded file: /user/files/1716975540094_5246333393282262.txt from default-user ``` What is the limit for the files? It seems to work just fine with files under 100KB, but anything over that and it outputs this error.
Author
Owner

@Cohee1207 commented on GitHub (May 29, 2024):

Yes, you're right, the limit is 100KB and should be raised. I'll do it in a while.

<!-- gh-comment-id:2137020678 --> @Cohee1207 commented on GitHub (May 29, 2024): Yes, you're right, the limit is 100KB and should be raised. I'll do it in a while.
Author
Owner

@RodriMora commented on GitHub (May 29, 2024):

Yes, you're right, the limit is 100KB and should be raised. I'll do it in a while.

Thanks a lot!

Will using the Vectorization Source as local reduce the file size? Would it be recommended to use the Extras server a it uses sentence-transformers/all-mpnet-base-v2 which I guess have a bigger context length?

<!-- gh-comment-id:2137044138 --> @RodriMora commented on GitHub (May 29, 2024): > Yes, you're right, the limit is 100KB and should be raised. I'll do it in a while. Thanks a lot! Will using the Vectorization Source as local reduce the file size? Would it be recommended to use the Extras server a it uses sentence-transformers/all-mpnet-base-v2 which I guess have a bigger context length?
Author
Owner

@Cohee1207 commented on GitHub (May 29, 2024):

You can easily swap embedding models both for extras and local. For extras - with a command line flag. For local - with config.yaml. So there's no precise recommendation for what to use, feel free to try different options.

<!-- gh-comment-id:2137049111 --> @Cohee1207 commented on GitHub (May 29, 2024): You can easily swap embedding models both for extras and local. For extras - with a command line flag. For local - with config.yaml. So there's no precise recommendation for what to use, feel free to try different options.
Author
Owner

@Cohee1207 commented on GitHub (May 29, 2024):

This has been fixed. Update the plugin by running the following in the SillyTavern repository root:

npm run plugins:update
<!-- gh-comment-id:2137060619 --> @Cohee1207 commented on GitHub (May 29, 2024): This has been fixed. Update the plugin by running the following in the SillyTavern repository root: ```bash npm run plugins:update ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Office-Parser#2
No description provided.