HTTP request module

Describe the problem/error/question

After configur the HTTP request module I get alway the same error attched.

What is the error message (if any)?

source.on is not a fuction

Please share your workflow

(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.)
{
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.groq.com/openai/v1/audio/transcriptions",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "API KEY"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "whisper-large-v3-turbo"
            },
            {
              "name": "response_format",
              "value": "verbose_json"
            },
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "={{ $node["GetAudio"].binary.data }}"
            },
            {
              "name": "language",
              "value": "es"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -100,
        -320
      ],
      "id": "bc8be46b-4fe9-49df-bf0b-f8ce9107f4f7",
      "name": "HTTP Request1"
    }
  ],
  "connections": {},
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "aff0e1963ff23dbf30a552af030c5f373ef10246d89b73353b5660bd0ded2722"
  }
}
## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->

## Information on your n8n setup

Hi @Claudi

I think you need to edit this part:

Change it to something like this:

And only enter the input field name, for example: data

Let me know if you still have any issues


⚡

If this solves your problem, kindly mark the reply as the solution :white_check_mark::pray:t2:

1 Like

Yes, It has worked fine. Thanks.

How can I configure with Gemini? Is it possible make transcribing ? I don´t see any module for it so I guess I have to make a http request too, but I don´t find any document for it.

@Claudi Yes, there isn’t a built-in node for Gemini yet, but you can use the HTTP node to achieve this.

Here is the related article:

Kindly don’t forget to mark my previous reply as the solution :white_check_mark: so others with the same issue can find it easily :pray:t2:

Ok, thanks for the info but as I am a bit new in that information I don´t see how to configure the HTTP request for it…

Go to the REST tab, copy the relevant cURL commands, and import them into the n8n HTTP node.

This is generally how it works…

But what i need is not to upload a file I need to transcribing a file downloaded previously with Telegram get a file node.
But thanks anyway for your time.

You need to upload it, then ask for the transcription in the prompt:

Also, they mention that you can pass audio_bytes if the file is under 20MB.

So, in general, just start building it. If you run into any issues, feel free to post a question, and I’m sure you’ll get the help you need…

Ok, I will study it. Then I think it is easier with groq? isn´t it?

Groq is so fast, and its OpenAI API compatibility makes it easy to use.

The only downside is the few supported models…

Yes, that is true. For my testing I will work with it for me is easier. Thanks

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