Audio file upload error to hedra using n8n http node,

Describe the problem/error/question

audio file is generated using 11 labs. I am trying to upload the asset to hedra using their upload asset api. the configuration is straight forward , but it gives a 422 error

What is the error message (if any)?

Your request is invalid or could not be processed by the service
Value error, Expected UploadFile, received: (type=value_error at body.file)
{
“errorMessage”: “Your request is invalid or could not be processed by the service”,
“errorDescription”: “Value error, Expected UploadFile, received: <class ‘str’> (type=value_error at body.file)”,
“errorDetails”: {
“rawErrorMessage”: [
“422 - "{\"code\":422,\"messages\":[\"Value error, Expected UploadFile, received: <class ‘str’> (type=value_error at body.file)\"]}"”
],
“httpCode”: “422”
},
“n8nDetails”: {
“nodeName”: “HTTP Request”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.2,
“itemIndex”: 0,
“time”: “5/23/2025, 10:57:31 PM”,
“n8nVersion”: “1.93.0 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: Your request is invalid or could not be processed by the service”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:615:21)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:696:27)“,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:930:51”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1266:20"
]
}
}

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.93.0
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):main
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker(self-hosted)
  • **Operating system:windows **

Did ElevenLabs return the audio as a binary file or a URL?
Check the output of that node to confirm

Use Binary Data Instead of String Path. In the HTTP Request node, make sure:
Send Binary Data"** = true and choose the binary property name that holds the audio file (like data or file depending on what ElevenLabs returned)

What to check:

  • Go to 11 labs text 2 speech node
  • Confirm it outputs the actual file (as binary)
  • Then pass this binary data directly to the HTTP node for upload

Secondly,

Use “Binary” → “file” in HTTP Body

In the HTTP node config:

  • Method: POST
  • Body Content Type: Multipart Form-Data
  • In the “Body Parameters”:
    • Key: file
    • Value: Select the binary file (from previous node)
    • Type: Binary

This way, you’re uploading the file itself, not a file path or string.

Hope this helps! Cheers

Hi , thanks for looking into it. Yes , it is specified correctly as you mentioned, still it errors out.

Hey , I have fixed this issue using Elevenlabs node.

so don’t use the api directly , use the eleven labs node. this is will generate the audio file in mp3.

I hope it will help you.