I’ve been having a frequent inconsistent error where when I run a basic LLM chain with the llama3.2, it fails with the message “Did not receive done or success response in stream”.
Here is the full stack trace if it helps:
Error: Did not receive done or success response in stream. at AbortableAsyncIterator.[Symbol.asyncIterator] (/usr/local/lib/node_modules/n8n/node_modules/ollama/dist/shared/ollama.11c1a3a8.cjs:47:11) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ChatOllama._streamResponseChunks (/usr/local/lib/node_modules/n8n/node_modules/@langchain/ollama/dist/chat_models.cjs:760:26) at ChatOllama._generate (/usr/local/lib/node_modules/n8n/node_modules/@langchain/ollama/dist/chat_models.cjs:687:26) at async Promise.allSettled (index 0) at ChatOllama._generateUncached (/usr/local/lib/node_modules/n8n/node_modules/@langchain/core/dist/language_models/chat_models.cjs:215:29) at LLMChain._call (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/chains/llm_chain.cjs:162:37) at LLMChain.invoke (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/chains/base.cjs:58:28) at createSimpleLLMChain (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:100:23) at getChain (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:109:16)
I have a feeling this error is indicating that the llama model is not responding, which is strange as this appears to happen randomly. I don’t know how to fix it, i kind of just wait a while and test it again later and it miraculously works. I’m not sure if this is a bug with n8n or a problem with my own machine. I’m running a Macbook pro m2 2022 (8gb).
If anyone else has experienced this or if anyone knows what the problem could be, please reply to this post. Thanks.
Information on your n8n setup
- n8n version: 1.72.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker self-hosted
- Operating system: MacOS