Error while parsing Anthropic output through Structured Output Parser

Describe the problem/error/question

I’m using a Basic LLM node with an attached Structured Parser. I’m getting an error but I don’t know how to identify the part that is failing the validation. The Node doesn’t show anywhere where the error is. I’m checking the output and it seems to be compliant.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Information on your n8n setup

  • n8n version: 1.79.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
  • Operating system:

Hello !

Could you share your workflow or just the node “basic llm” (better with pinned datas if you can !) ? This might be related to the model and prompt, but can’t know for sure !

Here’s a basic working example with 3.5 haiku :

So to give you more info, the error I was seeing was due to a limitation in the number of tokens, so the output from the Chat was abruptly cut.
But now I’m getting this (the node is not in Error but is returning an empty parsed json).

You can see that the input to the parser is a text (with loads of newlines] and the output is empty. The validation has happened before this point and the schema is compliant. So why am I not getting a json object?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.