Method request query string empty

Adnan Warsi 3 years ago updated by Praveen Srinivasaiah (Admin) 3 years ago 1

I'm sending a POST to my API hosted in AWS. It works with any HTTP POST tool, except OnSequel

the URL is : https://4fazgh21c4.execute-api.us-east-1.amazonaws.com/v1/kitchen-board/

and the parameter recipe_url value to test is : http://allrecipes.com/recipe/219167/chef-johns-pumpkin-pancakes/

the problem is at the API end where the logs say that the " Method Request Query String" ends up empty

if use any other tool with same parameter, API works fine and the logs for that is attached below

I guess the problem is somewhere in the header parameters perhaps.

Any help will be greatly appreciated !!!


Hi Adnan,

Sorry for the delay in response. I had a look in to the API request that you are using. There seems to be a minor error which is causing the error with API.

Actually for POST request there are different ways in which you can send the body of the request namely text/plain, application/json, application/xml, form-data etc. For an API to work properly, you will need to send the body in the format specified by the API provider.

In this case, you have specified header "Content-type = application/json" which means that the API is expecting the body in this particular format. But, you've selected "form-data" which is causing the request to fail.

So, basically you will need to select the raw-body option and in the text box put the proper json formatted body and choose request type as application/json and just test it will work.

I have attached the screenshot for your reference. Let me know if you need any further help.

Keep building your next transformers on onsequel.com :)

Screen Shot 2016-10-12 at 11.20.44 am.png