Source.on is not a function. Error Adjust your expression to access an existing item index maxIndex [item 1] please help me

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Information on your n8n setup

Hi. Why don’t you use OpenAI Node instead of HTTP Request Node?

1 Like

I use the HTTP Request node for custom OpenAI API calls because it gives me full control.

but i still getting this error source.on is not a function executing a workflow

If you work with binary files, I think this will solve your question.

Use the plain binary property name (e.g., data) in the “Input Data Field Name” field.

Do not use an expression that resolves to the binary data itself.

Ensure the binary data exists on the item before the HTTP Request node.

1 Like

Hi @Parintele_Damaskin

I set it up correctly but still the same problem

Do you try to send first the binary, and then you try to send some text consecutively?

Please provide the workflow, or image .

  • Body Content Type: multipart-form-data

I

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