GET request from Weweb not working

Options

My frontend on weweb is sending a GET request that takes 5 arrays of integers and a string.

Endpoint

If I send this from Weweb, on Xano I'll get this error: "Value "3,4,5,6" is not a valid integer" (that are the values of the first input array, that is actually containing integers)

While by doing the same request from Xano itself, it will work with the same inputs given.

Here there is a screen recording

 https://watch.screencastify.com/v/rAHnm9QCwz2SmGG7S5fF

The snippet:

https://www.xano.com/snippet/I82k5Ujc

Tagged:

Best Answer

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Answer ✓
    Options

    Hey @Federico Somaschini the issue here is passing Arrays as a URL parameter without the proper encoding from the front-end. My recommendation for the easiest way forward is to not utilize Arrays (or Objects) as a URL parameter in GET — instead, use them as in the request body via a POST request.

Answers