[GH-ISSUE #5601] [BUG]: Error message: "error: 400 status code (no body) Error: 400 status code (no body)" #5191

Closed
opened 2026-06-05 14:52:32 -04:00 by yindo · 1 comment
Owner

Originally created by @attutude on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5601

How are you running AnythingLLM?

Docker (remote machine)

What happened?

Error log from AnythingLLM deployed with Docker:

Most message sends succeed, but occasionally the following error occurs: "error: 400 status code (no body) Error: 400 status code (no body)"

[backend] info: [fillSourceWindow] Need to backfill 1 chunks to fill in the source window for RAG!
[backend] info: [fillSourceWindow] Citations backfilled to 4 references from 3 original citations.
[backend] info: [TokenManager] Returning existing instance for model: DeepSeek-R1
[backend] error: 400 status code (no body) Error: 400 status code (no body)
at APIError.generate (/app/server/node_modules/openai/error.js:45:20)
at OpenAI.makeStatusError (/app/server/node_modules/openai/core.js:263:33)
at OpenAI.makeRequest (/app/server/node_modules/openai/core.js:306:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async LLMPerformanceMonitor.measureStream (/app/server/utils/helpers/chat/LLMPerformanceMonitor.js:67:20)
at async GenericOpenAiLLM.streamGetChatCompletion (/app/server/utils/AiProviders/genericOpenAi/index.js:195:35)
at async Object.streamChat (/app/server/utils/chats/apiChatHandler.js:665:20)
at async /app/server/endpoints/api/workspaceThread/index.js:594:9

Are there known steps to reproduce?

No response

LLM Provider & Model (if applicable)

No response

Embedder Provider & Model (if applicable)

No response

Originally created by @attutude on GitHub (May 9, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5601 ### How are you running AnythingLLM? Docker (remote machine) ### What happened? Error log from AnythingLLM deployed with Docker: Most message sends succeed, but occasionally the following error occurs: "error: 400 status code (no body) Error: 400 status code (no body)" [backend] info: [fillSourceWindow] Need to backfill 1 chunks to fill in the source window for RAG! [backend] info: [fillSourceWindow] Citations backfilled to 4 references from 3 original citations. [backend] info: [TokenManager] Returning existing instance for model: DeepSeek-R1 [backend] error: 400 status code (no body) Error: 400 status code (no body) at APIError.generate (/app/server/node_modules/openai/error.js:45:20) at OpenAI.makeStatusError (/app/server/node_modules/openai/core.js:263:33) at OpenAI.makeRequest (/app/server/node_modules/openai/core.js:306:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LLMPerformanceMonitor.measureStream (/app/server/utils/helpers/chat/LLMPerformanceMonitor.js:67:20) at async GenericOpenAiLLM.streamGetChatCompletion (/app/server/utils/AiProviders/genericOpenAi/index.js:195:35) at async Object.streamChat (/app/server/utils/chats/apiChatHandler.js:665:20) at async /app/server/endpoints/api/workspaceThread/index.js:594:9 ### Are there known steps to reproduce? _No response_ ### LLM Provider & Model (if applicable) _No response_ ### Embedder Provider & Model (if applicable) _No response_
yindo added the needs info / can't replicate label 2026-06-05 14:52:32 -04:00
yindo closed this issue 2026-06-05 14:52:32 -04:00
Author
Owner

@timothycarambat commented on GitHub (May 9, 2026):

I notice you are using the GenericOpenAI connector - this could be endpoint related with some response shape we dont expect to have conditions for.

Is this endpoint you are using bespoke or something standard like llamacpp or a cloud endpoint?

<!-- gh-comment-id:4413953112 --> @timothycarambat commented on GitHub (May 9, 2026): I notice you are using the GenericOpenAI connector - this _could_ be endpoint related with some response shape we dont expect to have conditions for. Is this endpoint you are using bespoke or something standard like llamacpp or a cloud endpoint?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5191