422 Error when upload file in Chat Trigger node

Hi, an error occurred when switching to the new version of n8n for uploading PDF files with enabled streaming mode.
Situation
Recently updated to the new version of n8n.
I used the Chat Trigger node to upload files and summarize information through the AI ​​agent.
I saw that in the new versions was added a streaming response. I changed the nodes and enabled streaming in both the Chat Trigger node and the AI ​​agent node.
In the chat window, when uploading a PDF document, I get error 422

{
    "code": 422,
    "message": "Failed to parse request body",
    "hint": "No number after minus sign in JSON at position 1 (line 1 column 2)"
}

Information on your n8n setup

  • n8n version: 1.106.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux
1 Like

Hello @ostapiv2005, would you mind to share your workflow here?
You can use this guide for embedding your workflow
https://community.n8n.io/uploads/default/original/3X/3/c/3c5d4799d109b446df8875d731db2800e7c55bc6.gif

Thanks for the answer.

This text will be hidden

If I turn off streaming mode - everything works fine.
If I turn it on, I get error 422 right away, still on the client side as far as I understand, because the request doesn’t even reach the n8n workflow.

1 Like

Hi, @cutecatcode
Can you give some advice considering my workflow posted above?
Thanks

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