[GH-ISSUE #3585] There is a bug regarding uploading knowledge files to the database. #2318

Closed
opened 2026-02-22 18:29:09 -05:00 by yindo · 1 comment
Owner

Originally created by @CCkerber on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3585

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

My operating system is Windows 11 Professional and I have installed AnythingLLM Desktop software. After setting it up, when I try to upload a file with Chinese character quotation marks in the filename, no matter what format the file is, I get an error message. I tried writing a bat file to change to UTF-8,but it's not work,and I view the console output content when uploading files. The specific content is as follows:
'''
[collector] error: Error: ENOENT: no such file or directory, open 'C:\Users\grys7\AppData\Roaming\anythingllm-desktop\storage\documents\custom-documents""128.doc-de3dd000-3274-4c2f-a2b6-b441879bd0e9.json'
at Object.openSync (node:fs:601:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:2131)
at Object.writeFileSync (node:fs:2249:35)
at En (D:\software\AnythingLLM\resources\backend\collector.js:1:4286)
at zn (D:\software\AnythingLLM\resources\backend\collector.js:1:7266)
at ks (D:\software\AnythingLLM\resources\backend\collector.js:19:2925)
at D:\software\AnythingLLM\resources\backend\collector.js:44:769
at Layer.handle [as handle_request] (D:\software\AnythingLLM\resources\backend\node_modules\express\lib\router\layer.js:95:5)
at next (D:\software\AnythingLLM\resources\backend\node_modules\express\lib\router\route.js:149:13)
at Gs (D:\software\AnythingLLM\resources\backend\collector.js:20:3794)
'''
Plz try to solve this problem or give some solution.TKS very much!

Are there known steps to reproduce?

My bat file is:
'''
@echo off
set LANG=C.UTF-8
set LC_ALL=C.UTF-8
"D:\software\AnythingLLM\AnythingLLM.exe"
'''
When the bug appeared,I tried to use UTF-8 to solve the problem,but it's not work.However,I found the console shows the bug's details.

Originally created by @CCkerber on GitHub (Apr 3, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3585 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? My operating system is Windows 11 Professional and I have installed AnythingLLM Desktop software. After setting it up, when I try to upload a file with Chinese character quotation marks in the filename, no matter what format the file is, I get an error message. I tried writing a bat file to change to UTF-8,but it's not work,and I view the console output content when uploading files. The specific content is as follows: ''' [collector] error: Error: ENOENT: no such file or directory, open 'C:\Users\grys7\AppData\Roaming\anythingllm-desktop\storage\documents\custom-documents\""128.doc-de3dd000-3274-4c2f-a2b6-b441879bd0e9.json' at Object.openSync (node:fs:601:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:2131) at Object.writeFileSync (node:fs:2249:35) at En (D:\software\AnythingLLM\resources\backend\collector.js:1:4286) at zn (D:\software\AnythingLLM\resources\backend\collector.js:1:7266) at ks (D:\software\AnythingLLM\resources\backend\collector.js:19:2925) at D:\software\AnythingLLM\resources\backend\collector.js:44:769 at Layer.handle [as handle_request] (D:\software\AnythingLLM\resources\backend\node_modules\express\lib\router\layer.js:95:5) at next (D:\software\AnythingLLM\resources\backend\node_modules\express\lib\router\route.js:149:13) at Gs (D:\software\AnythingLLM\resources\backend\collector.js:20:3794) ''' Plz try to solve this problem or give some solution.TKS very much! ### Are there known steps to reproduce? My bat file is: ''' @echo off set LANG=C.UTF-8 set LC_ALL=C.UTF-8 "D:\software\AnythingLLM\AnythingLLM.exe" ''' When the bug appeared,I tried to use UTF-8 to solve the problem,but it's not work.However,I found the console shows the bug's details.
yindo added the possible bugDesktopinvestigating labels 2026-02-22 18:29:09 -05:00
yindo closed this issue 2026-02-22 18:29:09 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 3, 2025):

Are you using the UI, or the API?

@timothycarambat commented on GitHub (Apr 3, 2025): Are you using the UI, or the API?
yindo changed title from There is a bug regarding uploading knowledge files to the database. to [GH-ISSUE #3585] There is a bug regarding uploading knowledge files to the database. 2026-06-05 14:45:51 -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#2318