We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a workflow using a Basic LLM Chain with the On Error param set to Continue (using error output) like this:
Basic LLM Chain
On Error
Continue (using error output)
When I feed in an input to the LLM that flags on their content filtering policy, this sort of error gets thrown by the node:
NodeOperationError: 400 AzureException - Error code: 400 - {'error': {'message': "The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: https://go.microsoft.com/fwlink/?linkid=2198766", 'type': None, 'param': 'prompt', 'code': 'content_filter', 'status': 400, 'innererror': {'code': 'ResponsibleAIPolicyViolation', 'content_filter_result': {'hate': {'filtered': False, 'severity': 'safe'}, 'self_harm': {'filtered': False, 'severity': 'safe'}, 'sexual': {'filtered': True, 'severity': 'medium'}, 'violence': {'filtered': False, 'severity': 'safe'}}}}} at ChatOpenAI.callMethodAsync (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:34:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Proxy.connectionType (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:156:47) at async Promise.allSettled (index 0) at Proxy._generateUncached (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/node_modules/@langchain/core/dist/language_models/chat_models.cjs:114:25) at LLMChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/llm_chain.cjs:157:37) at LLMChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28) at createSimpleLLMChain (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:84:23) at getChain (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:93:16) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:407:31)
But what's really weird is that the SUCCESS path of the node is executed instead of the ERROR path:
And when I try to see the data returned to the Airtable nodes, it's completely EMPTY:
I'd expect this configuration to catch the error, evaluate the ERROR path, and provide details of the error to the downstream node.
Google Cloud Run
1.31.2
18.10
PostgreSQL
main (default)
The text was updated successfully, but these errors were encountered:
Thanks for the report, I have created NODE-1254 as the internal dev ticket to get this added.
NODE-1254
Sorry, something went wrong.
Fix got released with n8n@1.37.0
n8n@1.37.0
No branches or pull requests
Bug Description
I have a workflow using a
Basic LLM Chain
with theOn Error
param set toContinue (using error output)
like this:When I feed in an input to the LLM that flags on their content filtering policy, this sort of error gets thrown by the node:
But what's really weird is that the SUCCESS path of the node is executed instead of the ERROR path:
And when I try to see the data returned to the Airtable nodes, it's completely EMPTY:
To Reproduce
Basic LLM Chain
On Error
set toContinue (using error output)
Expected behavior
I'd expect this configuration to catch the error, evaluate the ERROR path, and provide details of the error to the downstream node.
Operating System
Google Cloud Run
n8n Version
1.31.2
Node.js Version
18.10
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: