N8n + OpenWebUI API: HTTP POST request not working

Describe the problem/error/question

Trying to create a HTTP node to make POST request to OpenWebUI API (guide here) to upload documents.
A compiled python code is working fine.
However, in n8n you need to use the HTTP node as custom python code can’t import requests.
The thing is, HTTP node can’t interface properly with OpenWebUI properly.

What is the error message (if any)?

Problem in node ‘HTTP Request‘
source.on is not a function

Problem in node ‘HTTP Request‘

source.on is not a function

Please share your workflow

Share the output returned by the last node

n8n version

1.62.3 (Self Hosted)

Stack trace

TypeError: source.on is not a function at Function.DelayedStream.create (/usr/local/lib/node_modules/n8n/node_modules/delayed-stream/lib/delayed_stream.js:33:10) at FormData.CombinedStream.append (/usr/local/lib/node_modules/n8n/node_modules/combined-stream/lib/combined_stream.js:45:37) at FormData.append (/usr/local/lib/node_modules/n8n/node_modules/form-data/lib/form_data.js:75:3) at prepareRequestBody (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/GenericFunctions.js:206:22) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1344:91) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:711:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1141:20

Information on your n8n setup

  • **n8n version:1.62.3
  • **Database (default: SQLite):SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • **Operating system:Win11 64 bit

Hey @Afamocc , I believe the problem stems from not referencing the binary file correctly. I would expect to see something like this

1 Like

Thanks a lot! After a bit of a hussle also the add to collection http node worked :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.