Transfer request body to an external API
Options
Victor Nihoul
Member ✭
Hi!
I am creating a proxy that converts a Xano GET request to an external POST request.
I am trying to transfer the received body to the external request but can't manage to do it.
When using the "Get all input" function with the JSON format, I get a "Unable to decode input" critical error.
And when I use it with the NONE format it seems to be working (gets the request body properly) but as it's formatted as text it messes up the formatting when sending the request back.
Anything in mind to solve this? 🙂
I am creating a proxy that converts a Xano GET request to an external POST request.
I am trying to transfer the received body to the external request but can't manage to do it.
When using the "Get all input" function with the JSON format, I get a "Unable to decode input" critical error.
And when I use it with the NONE format it seems to be working (gets the request body properly) but as it's formatted as text it messes up the formatting when sending the request back.
Anything in mind to solve this? 🙂
Comments
-
Can you share the function stack you're working with in a screenshot or whatever is most convenient? This has the smell of converting a GET HTTP-encoded query string to a JSON-encoded post, and just needing to do a little more in the middle to get from A to B.
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