When trying to upload a file to multiple file hosting sites (tmpfiles.org , file.io), the workflow errors out.
The same requests work just fine when implemented from Postman.
What is the error message (if any)?
{ "message": "Server Error" }
Please share the workflow
This is the equivalent CURL command: curl -F "[email protected]/Users/myuser/test.jpg" https://tmpfiles.org/api/v1/upload
That does seem broken using either form data or n8n binary. For now you can get the old version by copy/pasting an existing HTTP node, or pasting this onto your canvas
The error looks like it’s trying to send the raw JS buffer -
{
"status": "rejected",
"reason": {
"message": "500 - {\"type\":\"Buffer\",\"data\":[123,10,32,32,32,32,34,109,101,115,115,97,103,101,34,58,32,34,83,101,114,118,101,114,32,69,114,114,111,114,34,10,125]}",
"name": "Error",
"stack": "Error: Request failed with status code 500\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1358:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"
}
}
That is a bit strange, Doing the same test but sending it to webhook.site seems to result in a file being sent.
I have given the same workflow a test using the old HTTP Request node and I hit the same issue so I don’t think it is directly related to the node and could be something else.
@shrey-42 does it work with an older version of n8n or the v2 http request node? I couldn’t get it working with v2 or v3 so I would like to rule out this possibly being related to the node itself. I have also managed to upload data to other services this morning.