z/OS Connect Enterprise Edition

z/OS Connect

z/OS Connect

Truly RESTful APIs to and from your IBM Z mainframe

 View Only

Non generic error message for IMS service provider

  • 1.  Non generic error message for IMS service provider

    Posted 12/21/20 08:56 AM

    Hello,

    Currently when we send some invalid data (non-numeric data to numeric field), zOS Connect returns 500 - Internal server error.

    Log shows following errors:

    GMOMW0005E: A data type conversion error occurred while the leaf field request.xxxxxx.xxxxx of service interface xxxxxxxxx was converted: Infinite or NaN.

    GMOSR0013E: An unexpected error occurred processing service xxxxxxxxx using trancode xxxxxxx. Originating exception message = GMOMW0005E: A data type conversion error occurred while the leaf field request.xxxxxxx.xxxxx of service interface xxxxxxxxxxxxx was converted: Infinite or NaN.

    BAQR7074E: The mandatory JSON response property response is missing.

    And the response to the client is 

    {
        "errorMessage""BAQR7033E: Internal server error."
    }
    Is it possible to give more specific status codes instead of 500? I see WOLA service provider has useGenericError flag but not the IMS service provider.


    ------------------------------
    /Rahul
    ------------------------------