0

When I am making GET request to retrofit it gives me an error 400 - Bad Request.

This error is thrown when request length is greater than 1024.

It works fine when request length is less than 1024. I don't know how to fix this issue.

Om Prakash Gupta
  • 111
  • 3
  • 15

1 Answers1

0

Solution : It was not an issue of retrofit. The problem was inside Api(WCF) which I was using. In web config, the value of maxQueryStringLength was set to 1024. I got the exact issue when I sent the request using Postman.

Om Prakash Gupta
  • 111
  • 3
  • 15