Parameter undefined in function

Hello,

I setup a function that save and delete data from arrays in a google spreadsheet.

the function needs two parameters, two stringify arrays, inscriptions and effacer. The parameters are correctly passed in the query (as shown by the rawQuery).

The issue is that event.queryStringParameters.inscriptions returns undefined although event.queryStringParameters.effacer is OK.

The local function works as expected so I don’t really understand what is going on. I can have a workaround using the rawQuery but it would be easierto do it the way it is supposed to be done…

The page is the following : Inscriptions

EDIT : if I remove the JSON.stringify of the array when the function is called, the parameter is detected but not correctly parsed. So would it be some kind of bad shaped string? Again, this is working locally…

Thanks

Solved by adding encodeURIComponent to the JSON.stringify(array)

Thanks

Thanks so much for coming back and sharing your solution! This will definitely be beneficial for future forums members who encounter something similar. Happy building :rocket: