Output Parser Injection #15763
Labels
in linear
Issue or PR has been created in Linear for internal review
Needs Feedback
Waiting for further input or clarification.
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
Hi - seeing multiple breaking issues since updating. All longstanding production flows failing. Self hosted linux nginx reverse proxy. Have rebuilt flows from scratch now as airtable nodes also stopped working
looks like it was reported here #12709
ou must format your output as a JSON value that adheres to a given "JSON Schema" instance.
"JSON Schema" is a declarative language that allows you to annotate and validate JSON documents.
For example, the example "JSON Schema" instance {{"properties": {{"foo": {{"description": "a list of test words", "type": "array", "items": {{"type": "string"}}}}}}, "required": ["foo"]}}}}
would match an object with one required property, "foo". The "type" property specifies "foo" must be an "array", and the "description" property semantically describes it as "a list of test words". The items within "foo" must be strings.
Thus, the object {{"foo": ["bar", "baz"]}} is a well-formatted instance of this example "JSON Schema". The object {{"properties": {{"foo": ["bar", "baz"]}}}} is not well-formatted.
Your output will be parsed and type-checked according to the provided schema instance, so make sure all fields in your output match the schema exactly and there are no trailing commas!
Here is the JSON Schema instance your output must adhere to. Include the enclosing markdown codeblock:
{"type":"object","properties":{"output":{"type":"object","properties":{"ai_title":{"type":"string"},"ai_tags":{"type":"string"},"ai_article":{"type":"string"}},"required":["ai_title","ai_tags","ai_article"]}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
To Reproduce
Intermittent Issue after running Basic LLM Chain with output parser attached. No issues before updates. Have swtiched LLM to gpt40 and fails from time to time. Previously worked with mini
I cant reproduce it - flow works then stops working
Soemthing is injecting object properties into my schema so it breaks the output parser and rest of automation
{
"action": "parse",
"text": "
json\n{\"type\":\"object\",\"properties\":{\"output\":{\"type\":\"object\",\"properties\":{\"ai_title\":{\"type\":\"string\"},\"ai_tags\":{\"type\":\"string\"},\"ai_article\":{\"type\":\"string\"}},\"required\":[\"ai_title\",\"ai_tags\",\"ai_article\"]}},\"additionalProperties\":false,\"$schema\":\"http://json-schema.org/draft-07/schema#\"}\n
"}
{
"action": "parse",
"response": {}
}
My precise instructions
Output Requirements
Generate the following output in valid JSON format (without wrapping it in code blocks or including unnecessary characters). The output should match this structure exactly:
{
"ai_title": "Concise, punchy title under 60 characters",
"ai_tags": "Comma-separated keywords (e.g., 'AI, technology, speech')",
"ai_article": "Full article content as a single string, with all Markdown formatting included"
}
Important Note: Do not add backticks, json, or any code block formatting. Output plain JSON.
Expected behavior
All worked for at least 8 months - production flow failing with on/off issues. Started after updates
Operating System
ubuntu
n8n Version
Version 1.92.2
Node.js Version
18
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: