Skip to content

multipart/form-data Unable to calculate form data length #26606

@PhilippGoetje

Description

@PhilippGoetje

Bug Description

Hey,

in the last 2-3 updates, the http multipart/form-data with n8n binary data broke.
When I copy the same workflow with the same data to an older version, it works. Till a few days ago, I had no issues. Now I get the following message in the logs:
Mar 05 12:43:49 Unable to calculate form data length
Mar 05 12:43:49 data should be a string, Buffer or Uint8Array
Mar 05 12:44:52 Unable to calculate form data length
Mar 05 12:44:52 data should be a string, Buffer or Uint8Array

Version 2.10.3 self hosted via claudron.

To Reproduce

  1. set up a flow to get a binary file and merge via merge node with other data.
  2. Send binary file as multipart/form-data with two properties. "name" as string and "value" as data (binary)
  3. Node never finishes, does not throw an error and eventually runs into timeout.

Expected behavior

Working as before, where no issue was present

Debug Info

Mar 05 12:18:19 Version: 2.10.3
Mar 05 12:43:49 Unable to calculate form data length
Mar 05 12:43:49 data should be a string, Buffer or Uint8Array
Mar 05 12:44:52 Unable to calculate form data length
Mar 05 12:44:52 data should be a string, Buffer or Uint8Array

Operating System

Claudron

n8n Version

2.10.3

Node.js Version

Package version 4.9.1 on claudron, dont know the node.js version

Database

PostgreSQL

Execution mode

main (default)

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions