简体   繁体   中英

400 Bad Request on IIS Server on Post

400 Bad Request on IIS Server on Post request.

I have deployed IIS server on EC2 and have a service there, and I am posting request on EC2 service through restTemplate from my service.

After sometime I am start getting 400 Bad Request, while I am able to make call through postman.

What could be the possible problem and solution.

There are a large number of reasons this could be happening. The first thing I'd do to troubleshoot is to identify if there is a substatus code for the failing request. To do that, you'd need the IIS logs from the server (located by default in c:\\inetpub\\logs\\Logfiles) and locate the 400 response. The next field will be the substatus code which you can lookup at the following link: https://support.microsoft.com/en-us/help/943891/the-http-status-code-in-iis-7-0-iis-7-5-and-iis-8-0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM