Skip to content

Chat node does not. work with streaming and file upload at same time #22934

@akin-demir

Description

@akin-demir

Bug Description

I am trying to use chat trigger node to communicate with agent and upload a file so its content get parsed.
In production mode enabled (execution not editor) if I attempted to upload a file to via chat file upload (enabled) and have the response mode set to (Streaming) the node fails with the following error

{
    "code": 422,
    "message": "Failed to parse request body",
    "hint": "No number after minus sign in JSON at position 1 (line 1 column 2)",
    "stacktrace": "ResponseError: Failed to parse request body\n    at parseBody (/opt/homebrew/lib/node_modules/n8n/src/middlewares/body-parser.ts:70:10)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at parseRequestBody (/opt/homebrew/lib/node_modules/n8n/src/webhooks/webhook-helpers.ts:861:5)\n    at Object.executeWebhook (/opt/homebrew/lib/node_modules/n8n/src/webhooks/webhook-helpers.ts:435:3)"
}

while the n8n system logs

Error in handling webhook request POST /webhook/ab30eacf-87b6-45cc-8ef1-599825e34813/chat: Failed to parse request body
422 Failed to parse request body

To Reproduce

  1. Create chat trigger node
  2. Set response to "Streaming" (from node Options)
  3. Allow Files Upload set to True (from node Options)
  4. Make Chat Publicly available as True (from node Option)
  5. Access the chat via the web hook URL
  6. Upload any file (PDF my choice) + write something in the chat and send

Expected behavior

Expected it works fine upload file and submit text

Debug Info

Debug info

core

  • n8nVersion: 1.121.3
  • platform: npm
  • nodeJsVersion: 24.6.0
  • nodeEnv: undefined
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/142.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-12-08T16:12:32.346Z

Operating System

Mac Tahoe 26.1

n8n Version

1.121.3

Node.js Version

24.6.0

Database

SQLite (default)

Execution mode

main (default)

Hosting

n8n cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs FeedbackWaiting for further input or clarification.status:in-linearIssue or PR is now in Linearstatus:pending-assignmentIssue is waiting for team assignmentstatus:team-assignedA team has been assigned the issue or PRteam:aiIssue is with the ai teamtriage:completeTriage has been completed and issue is ready for internal teams

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions