Unexpected 400 response Error if using array as parameter in volley POST request

96 viewsandroid volley
Arslan Shahid | 12 xp

I am trying to post data to server using volley which have some string and an array as parameter . i have an issue when i send only string parameter to server server accepts the data and i get response from server but when i add array (which is converted into String using GSON Library) i get 400 error response. I also tried to send this data to server using “Postman” from there i get true response from server.

I want to send data to server like this type:

Here is my code.

Amit Tondon | 17 xp

400, i guess it is not server error.

Check back your server.

Visit this for solutions: https://airbrake.io/blog/http-errors/400-bad-request