[GH-ISSUE #482] yarn prod server on windows platform,print logs such as: #274

Closed
opened 2026-02-22 18:18:40 -05:00 by yindo · 2 comments
Owner

Originally created by @huicewang on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/482

The "paths[0]" argument must be of type string. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Object.resolve (node:path:167:9)
at viewLocalFiles (\anything-llm\server\utils\files\index.js:51:14)
at \anything-llm\server\endpoints\system.js:226:32
at Layer.handle [as handle_request] (C:\Users\86134\Desktop\workspace\anything-llm\server\node_modules\express\lib\router\layer.js:95:5)
at next (\anything-llm\server\node_modules\express\lib\router\route.js:144:13)
at validateMultiUserRequest (\anything-llm\server\utils\middleware\validatedRequest.js:85:3)
at async validatedRequest (\anything-llm\server\utils\middleware\validatedRequest.js:9:12) {
code: 'ERR_INVALID_ARG_TYPE'
}

Originally created by @huicewang on GitHub (Dec 20, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/482 The "paths[0]" argument must be of type string. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined at new NodeError (node:internal/errors:405:5) at validateString (node:internal/validators:162:11) at Object.resolve (node:path:167:9) at viewLocalFiles (\anything-llm\server\utils\files\index.js:51:14) at \anything-llm\server\endpoints\system.js:226:32 at Layer.handle [as handle_request] (C:\Users\86134\Desktop\workspace\anything-llm\server\node_modules\express\lib\router\layer.js:95:5) at next (\anything-llm\server\node_modules\express\lib\router\route.js:144:13) at validateMultiUserRequest (\anything-llm\server\utils\middleware\validatedRequest.js:85:3) at async validatedRequest (\anything-llm\server\utils\middleware\validatedRequest.js:9:12) { code: 'ERR_INVALID_ARG_TYPE' }
yindo closed this issue 2026-02-22 18:18:40 -05:00
Author
Owner

@shatfield4 commented on GitHub (Dec 20, 2023):

Hi, please follow the instructions in the README here and ensure it runs properly in development before trying to run this in prod.

@shatfield4 commented on GitHub (Dec 20, 2023): Hi, please follow the instructions in the [README here](https://github.com/Mintplex-Labs/anything-llm?tab=readme-ov-file#how-to-setup-for-development) and ensure it runs properly in development before trying to run this in prod.
Author
Owner

@timothycarambat commented on GitHub (Dec 21, 2023):

The root cause is you did not define STORAGE_DIR as an environment variable for production

@timothycarambat commented on GitHub (Dec 21, 2023): The root cause is you did not define `STORAGE_DIR` as an environment variable for production
yindo changed title from yarn prod server on windows platform,print logs such as: to [GH-ISSUE #482] yarn prod server on windows platform,print logs such as: 2026-06-05 14:34:25 -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#274