I am making an api call that takes three parameters in the request: client_id, authorization_id, and query_params, a list of optional configurations. Essentially what the API call does is give you back vehicle information when you give them a VIN number. When I put these three parameters into form-data, it works and I get back all the correct vehicle data I was expecting to see. When I use the raw tab, with an identical JSON object, I get back âAuthentication Failedâ. This is driving me nuts as I believe solving this would also be the solution to the reason it wonât work in my AngularJS application where I get back the same error response. I checked the network tab for the response in my application, and double checked the headers in Postman, and they both have Content-Type: âapplication/jsonâ, I am at a loss as to why one would work, and not the other.
What JSON structure does your endpoint expect and what does your ârawâ data look like in the body section ?
Hey @mhurtado1016, welcome to the community!
If your request is formData
but youâre putting it in the raw
window, make sure you include the Content-Type header so your API knows how the data is formatted.
Thanks @allenheltondev,
Iâm trying to convert a post request with form-data to a raw body request with json.
this is ok:
but, json request:
I get this error:
âmsgâ: âNo se encontrĂł el envio de la variable âinformacionââ
but, âinformacionâ property is.
Do you know if your API supports that content type? The error message is making me think it doesnât.
I have the same issue I think
Iâm sending this
I´m getting this result
{â{\r\n___"trackingID":"0001-000500000057-S",\r\n____"bultos":1,\r\n__"linea"__:_1\r\n}â:ââ}
Itâs started suddenly
So the response of your API is the same as the request you sent in?
if you get thatâs problem you can use this way, just add this (see the image) on the header section, boom itâs absolutely works
I have solved it here: