Many Errors with statuscode 400 and X-ARR-CACHE-HIT=0 [Answered]RSS

2 replies

Last post Oct 10, 2016 02:04 AM by Yuk Ding

  • Many Errors with statuscode 400 and X-ARR-CACHE-HIT=0

    Oct 07, 2016 09:51 AM|Libelle567|LINK

    In IIS Log we have many entries with http statuscode 400 and the X-ARR-CACHE-HIT=0 flag.

    A entry in iis log looks like:

    123.123.50.123, -, 10/6/2016, 7:56:59, W3SVC1, servername, 123.123.12.123, 3000, 4252, 0, 400, 64, GET, /animals/cats.aspx, X-ARR-CACHE-HIT=0&SERVER-ROUTED=123.123.12.124&X-ARR-LOG-ID=dc1d5a93-b73b-4164-968c-5678c3c54ee7,

    because, some customers have sometimes problems to get specific content, i guess, the problem is the status 400 logged problem.

    Why are these 400 errors logged, what could be the cause, how could I fix it?

    I do not have enabled the caching for the webfarm / application request routing.

    How can I get additional information about the problem?

    I have changed the iis logging format from "IIS" to the "w3c" format where I can enter additional fields. Do I have to add one and which one?

    Is it possible to browse the X-ARR-LOG-ID to get additional informations and where I have to look?

    Thanks in advice.

  • Rovastar Rovastar

    5468 Posts

    MVP

    Moderator

    Re: Many Errors with statuscode 400 and X-ARR-CACHE-HIT=0

    Oct 07, 2016 11:45 PM|Rovastar|LINK

    Troubleshoot IIS in style
    https://www.leansentry.com/
  • Re: Many Errors with statuscode 400 and X-ARR-CACHE-HIT=0

    Oct 10, 2016 02:04 AM|Yuk Ding|LINK

    Hi Libelle567,

    Why are these 400 errors logged, what could be the cause, how could I fix it?


    400 error means that IIS has rejected the client’s HTTP request because it did not meet the server’s parsing rules, or it exceeded time limits, or failed some other rule that IIS requires incoming requests to adhere to.  IIS sends the HTTP 400 – Bad Request status back to the client, and then terminates the TCP connection.

    This link may help you figure out the issue:

    https://www.iis.net/learn/troubleshoot/diagnosing-http-errors/troubleshooting-http-400-errors-in-iis

    How can I get additional information about the problem?


    You could try to check the httperr.log in C:\Windows\System32\LogFiles\HTTPERR\httperr.log.

    The error log like 2012-09-0505:01:22 ::1%0 20567 ::1%0 80 HTTP/1.1 GET /  400 – FieldLength could contain the error detail.

    Besides, you could try to enable the failed request tracing and post the error log here.

    This link provides the method to use failed request tracing:

    https://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis

    Do I have to add one and which one?


    I’m not sure whether there are any addition fields could help troubleshooting this problem.

    Is it possible to browse the X-ARR-LOG-ID to get additional informations and where I have to look?
    

    I’m afraid the X-ARR-LOG-ID could not help resolving this problem.

    Maybe this link could help you troubleshooting the cache item:

    https://www.iis.net/learn/extensions/troubleshooting-application-request-routing/troubleshooting-cache-items-arr-v2

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.