Unable to convert input to a list

Hi,
I don’t have much experience on n8n. I have a workflow in which I have the gsheet node and am pushing the data to an api for enrichment using the http request node. I have the error message, ‘input must be a list’. Tried solving it with a function node and the list node but still getting the same error. Code I tried on the function node is:

for (item of items) {
  var1=JSON.stringify(item.json["google_search_query"]);

}

return items;

Is there something else I can try?

Information on your n8n setup

  • **n8n version:**Version 1.3.0 (1.3.0)
  • Running n8n via desktop app

Hey @Diana_C, welcome to the community!

I am very sorry to hear you’re having trouble here. Is it the HTTP Request node throwing the error here? If so, could you share the node (you can simply select it on the n8n canvas and press Ctrl+C to copy the code) and also share the JSON data structure you are passing on to it?

Feel free to replace any confidential values, it’s only the structure I am interested in here.