IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Retrieve The Native API Response

    Posted Wed December 23, 2020 06:08 AM

    Dear Team,

    I’m using API Gateway 10.5 and everything works fine until it comes when the native API responded with 404, 405 and an error json model, the API Gateway overrides this error model with "

    {
    "Exception": "API Gateway encountered an error. Error Message:  Native service provider error. Code : 404. Request Details: Service - "
    }
    

    "

    I have tried to set Send Native Provider Fault Message = true, but it displayed an empty response body.

    Any suggestions?
    Thanks in advance


    #API-Management
    #API-Gateway
    #webMethods


  • 2.  RE: Retrieve The Native API Response

    Posted Wed December 23, 2020 07:00 AM

    It seems the native service returns the empty response body.
    To confirm that, can you please invoke the native service directly


    #webMethods
    #API-Management
    #API-Gateway


  • 3.  RE: Retrieve The Native API Response

    Posted Wed December 23, 2020 07:16 AM

    Thank you Mohammed for your response, but I’m sure that the native service responded with an error model as following:
    Status code: 404
    { "statusCode": code, "statusDescription": "NoDataFound", "message": "message_here" }


    #API-Management
    #API-Gateway
    #webMethods


  • 4.  RE: Retrieve The Native API Response

    Posted Wed December 23, 2020 08:16 AM

    It looks like you might have configured “Conditional Error Processing” policy with parameters like below. Here $ERROR_MESSAGE is replaced with “Native service provider error. Code : 404”.

    If you want to retrieve the native API response, select the “Send Native Provider Fault Message” instead of the json selection.

    If the above policy is not configured, then please check your “Default API Fault Configuration” under “Administration → General → API Fault”. Here again,if you want to retrieve the native API response, select the “Send native provider fault” check box.

    Regards,
    Vallab


    #webMethods
    #API-Gateway
    #API-Management


  • 5.  RE: Retrieve The Native API Response

    Posted Thu December 24, 2020 04:58 AM

    I’ve configured the API Fault from the Administration section


    And added the “Conditional Error Processing” at API Level with only “Send Native Provider Fault Message = true”
    But still displaying an empty response body


    #API-Gateway
    #webMethods
    #API-Management


  • 6.  RE: Retrieve The Native API Response

    Posted Tue February 23, 2021 11:16 AM

    It’s a “Conditional Error Processing”, so the Error Conditions - Status Code Error Criteria - Code (per code criteria), need to be defined


    #API-Gateway
    #API-Management
    #webMethods