Http request: JSON body does not go through

Hi, I have a very weird issue in an everyday task: putting json into the body of an http request (I am calling Xano).

Its super simple JSON:

{“type”:“Debitoren/Kreditoren”,“mandat”:4}

No unallowed spaces etc. I tested it also when I write it myself.

Is it normal that it looks like this (string) in the input bundle?:

“data”: “{\“type\”:\“Debitoren/Kreditoren\”,\n\“mandat\”:4}”

When I use the parse JSON module before, the type of error changes and I get “Validation failed for 1 parameter(s). Value can’t be casted as buffer for parameter ‘data’.“.

It must be an issue with the input not reaching xano correctly because when I set a default value for the input fields in xano (→ doesnt matter when sent input is not correct) I get the output I should get.

I have set raw data on the http module:

Thank you so much for your help, I am going crazy with this one…

Hi @Anna_Trenka,

Welcome to the community! What do you see in Xano when you check the request history of the API endpoint you are sending this to? You can see the HTTP error message and input from the side of Xano.

Two things to check:

  1. Is the method in Make & Xano both set to POST?
  2. Have you tried to debug the endpoint in Xano with the same payload?
{
  "type": "Debitoren/Kreditoren",
  "mandat": 4
}

This should work!

Cheers,
Henk

3 Likes

Thank you so much @Henk-Operative!!!:bouquet: It was the “missing” method POST!

2 Likes