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 ?
Hi, i have the same problem, please @peterconchar, could you solve it?
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: