none
IIS thrown htttp 500 error

    Question

  • lot of 500 (internal server error) thrown for particular  page  with post method,

    is 500 error due to db error?


    in iis log :

    2018-12-05 23:45:30 10.240.0.10 POST /shared/tickets/eval_condition - 443 - 96.71.57.33 Mozilla/5.0+(Windows+NT+10.0)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/70.0.3538.110+Safari/537.36 
    https://admin.maxiwel.com/pops/orders/create_ticket?id=3507609 500 0 0 46

    Friday, December 7, 2018 2:25 AM

All replies

  • I suspect your problem is because that value should read:

    3507609%20500%20%200%200%2046

    You want to pass 3507609 500 0 0 46 through some client-side function to make it URL-safe.


    It never hurts to try. In the worst-case scenario, you'll learn something.


    Friday, December 7, 2018 2:53 AM
  • it's not db level error ?   can you explain in detail..
    Friday, December 7, 2018 3:10 AM
  • HTTP Code 500 is "Internal Server Error."  It means the server is having a larf at something the administrator tried to do. 

    In this case, the administrator created a "link" or "form" or whatever in HTML that makes a browser generate a URI in a format that means nothing to HTTP.  URIs, including query parameters, may not have spaces.  URIs with substitutive values such as %20 for common non-breaking whitespace may still be mapped into filesystem directories and filenames that do contain spaces.

    Also I'm mildly confused why you even have URI parameters in a POST.  POST Parameters go into a body section of the request, not the URI.  It doesn't matter though because you should still receive the URI parameters in your serverside, but hopefully segregated from legitimate POST parameters somehow.

    Anyway, I provided a link that says a whole lot more and explains much more clearly both what the problem is here and how to fix it using a javascript standard function, which should work the same way in all browsers.  Check that out.


    It never hurts to try. In the worst-case scenario, you'll learn something.

    Friday, December 7, 2018 3:56 AM