GET request from Weweb not working
My frontend on weweb is sending a GET request that takes 5 arrays of integers and a string.
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:
Best Answer
-
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
-
Thank you, this is also what the support told me. As a POST it works perfectly now!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback