Help needed: Uploading file using HTTP Request

Hi everyone,
I’m currently trying to upload a file through an API using n8n.
However, I’m encountering the following error in the HTTP Request node:

“The service was not able to process your request.”

Any help would be appreciated!

Thanks in advance.

Error message detailed

{
  "errorMessage": "The service was not able to process your request",
  "errorDescription": "500 - {\"statusCode\":500,\"timestamp\":\"2025-06-13T19:49:13.452Z\",\"path\":\"/chat/files\",\"message\":\"\"}",
  "errorDetails": {
    "rawErrorMessage": [
      "500 - {\"statusCode\":500,\"timestamp\":\"2025-06-13T19:49:13.452Z\",\"path\":\"/chat/files\",\"message\":\"\"}"
    ],
    "httpCode": "500"
  },
  "n8nDetails": {
    "nodeName": "Upload File Webdesk + OpenIA",
    "nodeType": "n8n-nodes-base.httpRequest",
    "nodeVersion": 4.2,
    "itemIndex": 0,
    "time": "13/06/2025, 16:49:13",
    "n8nVersion": "1.95.3 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeApiError: The service was not able to process your request",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:769:15)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1185:9)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1534:27",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2098:11"
    ]
  }
}

Please share your workflow

My n8n setup

  • n8n version: 1.95.3
  • Database: SQLite
  • Running n8n via: Docker
  • Operating system: Linux - Debian

Hey so i think the api expects the data in with the name file instead of data as usually in any http requests this is the case,

I am attaching the new updated workflow so you can check it out

Cheers!!

I got a “The item has no binary field ‘file’ [item 0]” error message.
If I change the ‘Convert to file’ node to “Put output File in Field” in file, I receive the same initial error.

I’m sending a cURL generated in a successful test on Insomnia:

curl --request POST \
  --url https://web-api.smartwaydev.com.br/chat/files \
  --header 'Authorization: Bearer :-)' \
  --header 'Content-Type: multipart/form-data' \
  --header 'User-Agent: insomnia/11.2.0' \
  --form 'input-Attachment=@C:\Users\riglesias\Desktop\sql_xml.txt'

Um i think this should solve the problem