question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not support array query string parameters

See original GitHub issue

aws-serverless-express cannot parse array query string parameters

For example ?a=1&a=2 exposes only {a: 1} to express. Normally this would result in {a: [1, 2]}

API Gateway supports array query string parameters using multiValueQueryStringParameters instead of queryStringParameters.

https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#apigateway-multivalue-headers-and-parameters

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
autolistbencommented, Jun 3, 2019

Wow would be really nice to get this merged in!

2reactions
alexmantautcommented, May 22, 2020

Hi @pejulian,

For my project what I ended up doing is patching the library manually inside the node_modules dir, and converting that into a patch by using patch-package.

What patch-package does is, it creates a patch that gets applied after yarn install.

I know this is not an ideal solution, but this bug was wasting too much of my time on workarounds…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass an array within a query string? - Stack Overflow
I want that query string value to be treated as an array- I don't want the array to be exploded so that it...
Read more >
Arrays in query params - Medium
Arrays in query params. The same way there is no concensus over how objects should be represented in query parameters, there is no...
Read more >
Does not support array query string parameters #214 - GitHub
After searching around the code a little, I came up with a temporary hack in my code that overrides the queryStringParameters field in...
Read more >
Python: Why you can't use Arrays in Query Strings with ...
I found that Requests uses urllib 's urlencode function to encode query parameters here and here. The culprit was urlencode ! urlencode stuffs...
Read more >
Fun stuff: representing arrays and objects in query strings
Decoding a query string into an array is done with parse_str. It supports the ... Yep, URLSearchParams does not support objects as values....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found