Header name must be a non-empty string

Hi All

I got error on n8n , error massage problem in node ‘activities’ , header name must be a non-empty string .

Specify Body

{
“query”: “{{ $(‘Set Fields’).item.json.activities }} in {{ $(‘Set Fields’).item.json.destination }}”,
“topic”: “general”,
“search_depth”: “basic”,
“max_results”: 3,
“time_range”: null,
“days”: 3,
“include_answer”: true,
“include_raw_content”: false,
“include_images”: false,
“include_image_descriptions”: false,
“include_domains”: ,
“exclude_domains”:
}

Thank you for reading. Hope ome one can advise me where go wrong ?

Paul

Can you please share your workflow with us?
You can copy and paste it inside a code block.

To create a code block you just have to click here:
image

Your workflow will show up like this:

If possible, pin some example data into the first node before copying the workflow, so we can see the JSON you are receiving.

@solomon
My workflow

How have you configured your header credentials?

According to Tavily documentation it must be like this:

It looks like you didn’t set up the name correctly.

@solomon

To day after watch few you tube , I try to create credential for custom HTTP node again ,i also modify my workflow , instead of input from Elevenlabs , as i already
venlabs more then 100 times , i replace with On form submission node , so i can fill in all inform and able to pin the data to track the error massage (I learn a lot from Travel agent workflow ) , See my workflow : -

So there are some new development below : -

Below are the step i did for set up credential : -

URLhttps://serpapi.com/search

Method POST

URLhttps://api.tavily.com/search

AuthenticationGenertic Credential Type

Genertic Auth TypeHeader Auth

Header AuthHeader Auth Account Final ( Just a name)

When Create the credential i enter below : -

Nane Authorization

Value Bearer API_Code

When i run i get Error code : -

Authorization failed - please check your credentials

Invalid API key. Your API key should be here: Sign In - SerpApi

Assume my API key is 1234567890qwertyuiop

I replace below script :-
URLhttps://serpapi.com/search

with below script :-
https://serpapi.com/](https://serpapi.com/search)manage-1234567890qwertyuiop

I get new error code : -

The resource you are requesting could not be found
404 - Page Not Found 404 - Page Not Found
The page you are looking for doesn’t exist.

Some hopefully helpful links instead:

Hope you can advise me where go wrong ?

Paul

1 Like

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