Layer7 API Management

 View Only
  • 1.  httpRouting.reasonCode = {Integer} "-5"

    Posted Jan 29, 2020 08:40 AM

    On a Route via HTTP assertion the below reason code is return which by help documentation states:

    Undefined

    An unknown type of error has occurred (for example, an invalid response).

     

    • httpRouting.reasonCode = {Integer} "-5"

    Is there anything that can be done to help determine the root cause of the error?

    Edward Lokiec
    Telephone: 860.226.5977
    E-mail Address:  Ed.Lokiec@CIGNA.com

    image009.png@01CF8950.C7C0E410

     

     

    Confidential, unpublished property of Cigna. Do not duplicate or distribute. Use and distribution limited solely to authorized personnel. © Copyright 2020

     

    ------------------------------------------------------------------------------
    CONFIDENTIALITY NOTICE: If you have received this email in error,
    please immediately notify the sender by e-mail at the address shown. 
    This email transmission may contain confidential information.  This
    information is intended only for the use of the individual(s) or entity to
    whom it is intended even if addressed incorrectly.  Please delete it from
    your files if you are not the intended recipient.  Thank you for your
    compliance.  Copyright (c) 2020 Cigna
    ==============================================================================



  • 2.  RE: httpRouting.reasonCode = {Integer} "-5"

    Posted Jan 29, 2020 09:43 AM
    Also check if the URL if derived has query parameters encoded. You usually get url invalid error but you can check for this
    Can you hit the endpoint directly with the same details provided by Gateway. Look for variable output. Set option in http routing. and then look for variables
    1. ${response.http.allheadervalues}
    2. ${response.mainpart}

    Finally look in you backend logs you might get some exception

    ------------------------------
    Pre-Sales Consultant
    CA Southern Africa
    ------------------------------



  • 3.  RE: httpRouting.reasonCode = {Integer} "-5"

    Posted Jan 29, 2020 09:43 AM
    Hi,

    Extracted from one of our API which handle all HTTP routing errors:




  • 4.  RE: httpRouting.reasonCode = {Integer} "-5"
    Best Answer

    Posted Jan 30, 2020 04:49 AM
    Hello,

    If you search for the url to which youa re routing to in ssg logs, you will find the root cause.
    Generally, you see this httpRouting.reasonCode = {Integer} "-5" when the gateway doesn't trust the certificate of the url or if the connection is getting reset by the url.

    Thanks,
    Adarsh


  • 5.  RE: httpRouting.reasonCode = {Integer} "-5"

    Posted Jan 31, 2020 02:05 PM
    When I get -5 errors in route assertion most of the times the issue is an invalid SSL Certificate ("invalid" meaning "not trusted"). I  then go on and install the Root CA (and intermediate  certificates if necessary) or the SSL Certificate (if self-signed)  of the destination host as trusted in my Gateway (Tasks -> Certificates, Keys and Secrets -> Manage  Certificates) and the problem is solved.

      This could be your issue.

    Regards,

    Marlos Chida