I have a tool bot with structured output parser, it has error output enabled and three retries set, like this:
Ocassionally it fails with the output format - most of time in the first attempt, which is corrected in second attempt. Then it makes the third attempt, also successful, and exits with the Error branch. I checked the output from the structured output parser attempt #2 and #3 and they’re both valid,
Am I missing something, or is it just a bug, that the fist attempt fail causes the whole response go through the error branch instead of the success branch?
What is the error message (if any)?
Model output doesn’t fit required format.
Please share your workflow
I can’t share the workflow, but there is the screenshot of log from the Error branch:
only the first parse attempt is failed:
but entire bot request exits with the Error branch:
Share the output returned by the last node
The output from tool bot is the same as input with added attribute:
“error”:
“Model output doesn’t fit required format”
Information on your n8n setup
It’s the self hosted on Docker 1.72.1 on Ubuntu with default DB.



