In app getting 400 Bad request in api response

603 views Asked by At

I am using retrofit for API call & back-end is in Magento 2, where I have enabled cookie. But sometimes I am getting 400 Bad request in server response. This is taking place only for android. It is working fine when they are calling the API from postman.

1

There are 1 answers

0
Mohamed On

In the postman, choose "Code" from the right corner above the request body. this will show the exact message sent to the API (includes headers, URI, HTTP method etc). verify the same is being sent by Android.

Next check the system policy that allows such message passing or not.