Getting Internal system error when requesting

76 views Asked by At

I have written an API in wso2. On sending request to it I am getting error as follows:

{"responseCode" : "001", "responseDesc" : "Internal system error"}

Any idea what does this mean and why is this error coming?

Below is the fault sequence that is running here.

<faultSequence>
    <log level="custom">
        <property expression="$ctx:ERROR_MESSAGE" name="ERROR_MESSAGE"/>
        <property expression="$ctx:ERROR_CODE" name="ERROR_CODE"/>
        <property expression="$ctx:ERROR_DETAIL" name="ERROR_DETAIL"/>
        <property expression="$ctx:ERROR_MESSAGE" name="ERROR_EXCEPTION"/>
    </log>
    <payloadFactory media-type="json">
        <format> { "responseCode" : "$1", "responseDesc" : "$2"} </format>
        <args>
            <arg evaluator="xml" expression="$ctx:ERROR_CODE"/>
            <arg evaluator="xml" expression="$ctx:ERROR_MESSAGE"/>
        </args>
    </payloadFactory>
    <property name="messageType" scope="axis2" type="STRING" value="application/json"/>
    <respond/>
</faultSequence>
1

There are 1 answers

3
ycr On

There can be many reasons, the fault sequence is triggered from your main sequence, so you need to figure out what's happening there. The ERROR_CODE = 001 doesn't seem to be something WSO2 generates unless you are setting it somewhere. So most probably this seems to be coming from the Backend.