How to pass multiple same query parameters for HTTP request

I have an HTTP Request that I need to pass an array of query parameters, like:

?q_organization_keyword_tags[]=financial&q_organization_keyword_tags[]=investment

I fill out the query parameter form like this:

This doesn’t work – only the last value is being transmitted. How can I get this to work?

Information on your n8n setup

  • n8n version: 1.111.0
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud

Hey @whitford-olmst hope all is good.

This certainly looks like a bug. You can report it here.

In the meantime you could try to just regularly append them to the URL?..

1 Like

Yes appending them to the URL works as expected, but using the query parameter fields does not work.

However, there’s something strange that makes it work: by creating one field with [] like this and the other without []:

the result:

My bet is internally they are collected into a hash which eliminates the ones with the same “key”.

Yup, I think it happens right here:

1 Like

If you dont wish to deal with opening a bug, let me know, I will do it for ya.

Thank you for the offer @jabbson , but I submitted a bug report:
* HTTP request unable to pass multiple values for the same query parameter · Issue #19727 · n8n-io/n8n · GitHub

Just to quickly add we do see issues here as well, they don’t need to be duplicated on GitHub :sweat_smile:

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